Hi André,

If you are building the frameworks as described here:

http://wiki.wocommunity.org/display/documentation/Building+and+Installing+a+Framework+with+Ant
 
<http://wiki.wocommunity.org/display/documentation/Building+and+Installing+a+Framework+with+Ant>

You need to check the version of java the console is using with:

java -version

If it returns something like:

java version “1.8.0_66"

then change it by editing bash_profile:

vi ~/.bash_profile

and setting:

export JAVA_HOME=`/usr/libexec/java_home -v 1.7`

before building.

I deploy some projects on java 1.7 and others on java 1.8 so I rebuild my 
frameworks often.

Steve

> On Oct 27, 2017, at 12:11 PM, Johann Werner <johann.wer...@posteo.de> wrote:
> 
> Hi André,
> 
> if you are using Wonder7 the prerequisite is Java 8. So if you are bound to 
> an older Java version you would have to go with Wonder6.
> 
> jw
> 
> 
>> Am 27.10.2017 um 17:56 schrieb André Rothe <andre.ro...@phosco.info>:
>> 
>> Hi,
>> 
>> I have a development environment, which runs on Java 1.8. But my target 
>> environment runs on Java 1.7. Now I try to deploy my application but it 
>> fails with:
>> 
>> java.lang.UnsupportedClassVersionError: com/webobjects/foundation/NSArray : 
>> Unsupported major.minor version 52.0
>> 
>> It seems, that the frameworks, which are bundled with my application are 
>> compiled with 1.8. I have tried some settings:
>> 
>> 1. On the project build.xml set source/target to 1.7 on the wocompile task
>> 2. on Eclipse Ant Runtime preferences I have set the properties 
>> ant.build.javac.source and ant.build.javac.target to 1.7
>> 3. I have recreated the WonderSource with the same properties on the 
>> commandline
>> 
>> Nothing will work, always I get the same error. What I can do?
>> 
>> 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/johann.werner%40posteo.de
>> 
>> This email sent to johann.wer...@posteo.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/speery%40me.com
> 
> This email sent to spe...@me.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