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      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/andre.rothe%40zks.uni-leipzig.de
> 
> 
> This email sent to andre.ro...@zks.uni-leipzig.de

-- 
UNIVERSITÄT LEIPZIG
Medizinische Fakultät
Zentrum für Klinische Studien Leipzig – KKS
André Rothe
CIO
Härtelstr. 16-18, 04107 Leipzig

Tel: 0341/ 97 16118
Fax: 0341/ 97 16189
WWW: http://www.zks.uni-leipzig.de

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to