• 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: Tue, 25 Feb 2020 10:59:29 +0100

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

  • Follow-Ups:
    • Re: WOLips and JDK versions
      • From: AndrĂ© Rothe via Webobjects-dev <email@hidden>
  • Prev by Date: SSO-Integration (auth0.com)
  • Next by Date: Re: SSO-Integration (auth0.com)
  • Previous by thread: Re: WOLips and JDK versions
  • Next by thread: Re: WOLips and JDK versions
  • Index(es):
    • Date
    • Thread