users@glassfish.java.net

Re: Re: Controlling the VM version running the applications

From: Per Steffensen <steff_at_designware.dk>
Date: Mon, 11 May 2009 09:31:52 +0200

Ludovic Champenois skrev:
> <div class="moz-text-flowed" style="font-family: -moz-fixed">On 5/9/09
> 7:28 AM, Per Steffensen wrote:
>> Hi
>>
>> Thanks for trying to help me!
>>
>> Unfortunally setting JAVA_VM_VERSION=1.6 in config file does not
>> help. Grrrr
>>
>> Any other suggestions.
>>
>> Regards, Per Steffensen
> Finally I got it working:
>
> in asadmin.conf:
> AS_JAVA="/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home"
> JAVA_JVM_VERSION="1.6"
>
> I was using JAVA_VM_VERSION instead of JAVA_JVM_VERSION arg@#$#%$%$%^%^^&
>
> Oh boy do I hate environment variables!!! really...It is worse than
> goto in programming.
> And I am still not happy with the way JDKs are controlled on Mac...
> Another non portable feature that breaks the write once run anywhere
> concept... There is non portable way of describing a java runtime
> environment.
>
> I guess we now need to document this in our GlassFish documentations.
> Ludo
> </div>

Hi

Thanks for the great help. Hope Oracle is able to keep the skilled Sun
employees.

Just to clarify: There is no asadmin.conf. I got it working by putting
the following in the asenv.conf:
AS_JAVA="/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home"
JAVA_JVM_VERSION="1.6"

Regards, Per Steffensen