Hi,

forget my reply to your original mail - I didn't see that you used the -target 
1.4 switch and misunderstood that you wanted to actually run Java 6 class files 
on 1.4.

Maik



Am 02.10.2012 um 22:29 schrieb doug andrews <[email protected]>:

> Never mind.  I've got it figured out.  I had some Wonder stuff in there, 
> which I don't think is compatible with java 1.4.
> 
> 
> 
> On Oct 2, 2012, at 3:23 PM, doug andrews wrote:
> 
>> Is it possible to deploy an application compiled with java 6 on a machine 
>> running java 1.4?
>> I have both Java 6 and 4 on my machine.
>> I have a test application created using the Eclipse ant build while running 
>> java 6.
>> I force the app to use java 1.4 when deployed by modifying the MacOS class 
>> path file:
>> 
>> # JVM  == 
>> /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2_22/Commands/java
>> 
>> When I run, I get this error:
>> java.lang.UnsupportedClassVersionError: 
>> com/webobjects/appserver/WOApplication (Unsupported major.minor version 49.0)
>> 
>> My java 6 version is:
>> java version "1.6.0_29"
>> Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11E53)
>> Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
>> 
>> My java 4 version is:
>> java version "1.4.2_22"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_22-b02-329)
>> Java HotSpot(TM) Client VM (build 1.4.2-92, mixed mode)
>> 
>> I've tried modifying the build.xml "wocomplile" argument like this:
>> <wocompile srcdir="Sources" target="1.4" source="1.4" destdir="bin" 
>> fork="yes" memoryMaximumSize="256m" debug="yes">
>> but this does not seem to work.
>> 
>> I'm pretty sure this is possible, but cannot figure out how.
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/dandrews%40mediaspansoftware.com
>> 
>> This email sent to [email protected]
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/maik%40selbstdenker.ag
> 
> This email sent to [email protected]


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

This email sent to [email protected]

Reply via email to