Hi André,

my understanding is that Wonder7 requires Java 8 (1.8). As you try to compile 
with Java 7 things don't work. You can of course set the compiler compliancy to 
Java 7 for your classes, but nevertheless your code requires a Java 8 runtime 
because the Wonder frameworks need this.

Hope this helps
---markus---

> On 21 Feb 2020, at 00:46, André Rothe via Webobjects-dev 
> <webobjects-dev@lists.apple.com> wrote:
> 
> 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/mailinglists%40kataputt.com
> 
> This email sent to mailingli...@kataputt.com

 _______________________________________________
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