• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOLips and JDK versions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOLips and JDK versions


  • Subject: Re: WOLips and JDK versions
  • From: Susanne Schneider via Webobjects-dev <email@hidden>
  • Date: Fri, 28 Feb 2020 13:39:30 +0100

Hi,

I apologize: I have to correct myself. This property seems to be an invention from us (so long ago that I forgotten). But it is used to set a standard ant property of "javac" or "wocompile":

<!-- set fork="true" so jdk used to run ant in is used instead of jre picked by ant for JDK>1.6 -->
<javac destdir="${srt.dir}/src/Frameworks/STApplication/bin/"
        encoding="UTF-8"
        fork="true"
        source="${javalevel}" >

<src path="${srt.dir}/src/Frameworks/STApplication/${pwd.src.dir}/${pwd.src.package}" /> <src path="${srt.dir}/src/Frameworks/STFoundation/src/${pwd.src.package.encryption}/" /> <src path="${srt.dir}/src/Frameworks/STFoundation/src/${pwd.src.package}" />

</javac>
...
<wocompile fork="true" source="${javalevel}" srcdir="${src.dir}" destdir="${classes.dir}" encoding="UTF-8" debug="${compile.debug}" optimize="${compile.optimize}" deprecation="${compile.deprecation}"> <!-- jkd1.7 on Windows 7 does not include the (private) com.sun.image.codec.jpeg.* classes and fail during compile in order to ignore this problem until really necessary, the following compiler flag ignores that private check, sus 14.07.2014 -->
        <compilerarg value="-XDignore.symbol.file"/>

        <frameworks root="System" embed="false">
                <include name="JavaWOExtension.framework" />
                <include name="JavaFoundation.framework" />
                <include name="JavaXML.framework" />
                <include name="JavaEOAccess.framework" />
                <include name="JavaEOControl.framework" />
                <include name="JavaWebObjects.framework" />
                <include name="JavaWOExtensions.framework" />
                <include name="JavaJDBCAdaptor.framework" />
        </frameworks>

        <classpath refid="classpath" />
</wocompile>

Hopes that helps,
Susanne


Hi,

Is there a documentation of the property?

Thanks
Andr?

Am 25.02.20 um 10:59 schrieb Susanne Schneider via Webobjects-dev:
Hi,

the ant build uses a property name "javalevel" to determine the compiler
level setting. This property can either be set in the build.xml itself
or (more practically) in the build.properties files used by the
build.xml (mostly read in by the "init.properties" target).

The default WOLips setting mostly hides the properties files from view
but it should be there.

Regards,
Susanne


Hi,

I run into a build problem on a WebObjects application. As I have to
realize, I don't understand the build procedures within
Eclipse/WOLips.


-------------- Eclipse 4.6.3 started within OpenJDK 1.8.0_212-b4.

My WebObjects project should be compiled with an OpenJDK 1.7.0, so I
have set the JRE System Library for the project to that JDK
(parallel installation on the workstation, set also as installed JRE
within Eclipse).

The Java Compiler settings for the project is set to "Compiler
compliance level 1.7".

If I start now the "build" target on the build.xml of the project, I
get an error:

build.xml:203 taskdef A class needed by class
org.objectstyle.woproject.ant.WOCompile cannot be found:
org/apache/tools/ant/taskdefs/Javac --------------

If I set the JRE System Library of the project to the OpenJDK
1.8.0_212-b4, which executes the Eclipse, and set the Compiler
compliance level to 1.7 too, the build process will work again.

The major class version of the classes within the /bin directory
(build path of the project) is 51 (1.7). The class version of the
/build directory (WOLips build path?) is 51 too and the class version
of the unzipped JAR files within the /dist folder is 51 too.


As Ant installation I use the version 1.9.6 inside the Eclipse
installation. On the Ant runtime settings dialog I have set

ant.build.javac.source 1.7 ant.build.javac.target 1.7 compiler.source
1.7 compiler.target 1.7

The Ant classpath contains tools.jar from the OpenJDK 1.8.0_212-b4
and the woproject.jar from the WOLips plugin. The Ant process will
also be executed by JDK 1.8, but generates target files for 1.7. But
how interacts this with the project JRE System Library?
------------------

If I change the tools.jar to JDK 1.7, the same error occurs like
above. The Ant build is configured as External Tool Config, so I can
change the JRE there to JDK 1.7. But now I get the following error:

UnsupportedClassVersionError:
org/objectstyle/woproject/ant/WOCompile: Unsupported major.minor
version 52.0

This seems to be a problem from the Eclipse installation, it needs
JDK 1.8 to run, and the WOCompile.class within the plugins folder has
also a major version 52, so it needs JDK 1.8. ------------------

The last thing is the context menu item "WOLips Ant Tools->Install".
It doesn't work at all, it returns also

UnsupportedClassVersionError:
org/objectstyle/woproject/ant/WOCompile: Unsupported major.minor
version 52.0

Here executes an older JDK the Ant process, which is visible on the
Console output (java-1.7.0/bin/java), but why? ------------------

How interact these things together, how I have to set the JDK
versions?

Thanks a lot Andr?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list????? (email@hidden)
Help/Unsubscribe/Update your Subscription:


This email sent to email@hidden


--
Susanne Schneider
Coordinator secuTrial® Development

interActive Systems GmbH
Glogauer Str. 19, D-10999 Berlin

fon    +49 30 22 50 50 - 498
fax    +49 30 22 50 50 - 451
mail   email@hidden
web    http://www.secuTrial.de

----------------------------------------------------
Geschäftsführer: Dr. Marko Reschke, Thomas Fritzsche
Sitz der Gesellschaft: Berlin
Amtsgericht Berlin Charlottenburg, HRB 106103B
----------------------------------------------------
Datenschutzhinweis https://www.interactive-systems.de/datenschutz-kunden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: WOLips and JDK versions
  • Next by Date: Re: [Tomcat] -Classpath ordering issue (Dev WO)
  • Previous by thread: Re: WOLips and JDK versions
  • Next by thread: SSO-Integration (auth0.com)
  • Index(es):
    • Date
    • Thread