Hi,

You should just tell Eclipse to compile your source as 1.5-compatible so that 
your app works with 1.6 and 1.5. Eclipse -> Preferences -> Java -> Compiler -> 
check Compiler compliance level to 1.5.

> Hi,
> I’m trying to deploy an application on a Mac OS X but I have a problem with 
> the jvm version. As a regular I get the 1.6 version:
> 
> $ java -version
> java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
> 
> as root I get the 1.5 one:
> 
> java version "1.5.0_26"
> Java(TM) 2 Runtime Environment, Standard Edition (build 
> 1.5.0_26-b03-376-9M3263)
> Java HotSpot(TM) Client VM (build 1.5.0_26-156, mixed mode)
> 
> unless I explicitly set the JAVA_HOME env variable:
> 
> export 
> JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
> 
> However, I don’t know (or probably I don’t remember) if I can set the 
> JAVA_HOME env variable using JavaMonitor. Did anybody find a way to use the 
> JVM 1.6?
> 
> Thank you in advance
> --
> Giorgio Valoti
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
> 
> 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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to