Re: New Eclipse with old Java
Re: New Eclipse with old Java
- Subject: Re: New Eclipse with old Java
- From: Kushnir Gennady <email@hidden>
- Date: Tue, 20 Oct 2015 15:56:34 +0300
Thank you for your reply. Check if your WO is still setup properly and your Library/wobuild.properties are setup correctly.
I’m afraid I don’t get that. WO frameworks are still in /System/Library/Frameworks What is "Library/wobuild.properties" ?
After changing Ant (on Mars) settings to run with Java 1.8 the build tells me that it completed successfully but actually I can't see the resulting .woa installed in /Library/WebObjects/Applications.
I’ve never built anything for Java 1.7 as far as I remember…
Regards, Gennady
20 окт. 2015 г., в 14:00, Dennis Bliefernicht < email@hidden> написал(а):
Hi, On 20 Oct 2015, at 12:41, Kushnir Gennady < email@hidden> wrote:
It has been a while since I last updated my developer environment for WO. I used to work with Eclipse Helios lately. But after updating my mac to El Captain I noticed some differences in launch scripts generated during application build. After all I decided to upgrade to newer version of Eclipse. And I’m still having trouble with it.
Not on the original issue but I noticed that this happens, when woproject (i.e. the ant/maven/gradle builder) cannot find WebObjects. It then falls back to assuming an older version of WO and builds a different launch script. Check if your WO is still setup properly and your Library/wobuild.properties are setup correctly. This can be especially irritating when not embedding frameworks and/or building with maven/gradle as the WO dependencies are all present but the launch script just is different. First I installed version 4.5 (Mars) with WOLips44. I found that it refused to launch with Java 1.6, so I had to install Java 1.8 also. But I failed to build my app as it said to me that Java versions below 1.7 are not supported.
Seems like this is more related to ant not working properly with Java 6 anymore; you need to run using at least Java 7 but you should be able to target your builds to 1.6 (i.e. Java 6) by adding the appropriate parts to your ant file. https://bugs.eclipse.org/bugs/show_bug.cgi?id=474386 has some more information and further links on the whole ant-mars-java7 issue. After that I installed 4.4 (Luna). But it also refused to build saying: "Unsupported major.minor version 51.0".
Have you cleaned everything? This is usually a Java 6 compiler / runtime trying to work on classes compiled with Java 7. Probably there are some Java7-compiled files around. Note that Java 6 and 7 are already (at least publicly) end of life so you should at least evaluate if there are any problems running on 7 or even 8.
Greetings Dennis
-- <xyrality_logoV2green2.png>
----------------------------------------------------- Dennis Bliefernicht • Backend Development
T +49 40 357 3001 62 XYRALITY GmbH • Friedensallee 290 • 22763 Hamburg Registergericht: Hamburg HRB 115332 Geschäftsführer: Sven Ossenbrüggen
-----------------------------------------------------
|
_______________________________________________
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