users@glassfish.java.net

Re: Controlling the VM version running the applications

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Fri, 08 May 2009 18:25:40 -0700

On 5/8/09 3:05 PM, Rochelle Raccah wrote:
> Hi Per,
>
> You are correct in your reading of the release notes - the fix in
> 1.0.25 was for v3. You can file an issue for v2 improvements in this
> area.
> https://glassfishplugins.dev.java.net/issues/
>
> Rochelle
>
Not really... This is more on the v2 side and the way it defines the JDK
in different manners that may not work well when exec from a VM running
in JDK 1.5 on Mac only...
When a JDK 1.5 vm process execs another VM (via asadmin) the environment
is inherited...The bummer is that Mac VMs need another variable called
JAVA_VM_VERSION.
See http://lists.apple.com/archives/java-dev/2005/May/msg00281.html
Not sure yet how to resolve this on MAC.
By the way, JDK 1.6 on Mac is still not supported by Apple itself...This
is not an official release, only for developer preview...
Can you try one thing: add in your glassfish/config/asenv.conf v2 config
file an entry for this variable as well
JAVA_VM_VERSION=1.6
and of course
AS_JAVA to /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

No guarantee, but for v2, asenv.conf is the correct place to setup your env.
Ludo