users@glassfish.java.net

Re: Controlling the VM version running the applications

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Mon, 11 May 2009 13:40:46 -0700

I just tried with GFv2 update 02 (9.1_02) and it works fine
and I have only AS_JAVA defined to the 1.6 path on Mac.

I don't need JAVA_JVM_VERSION in asenv.conf.

Of course, I just tested it with asadmin start-domain command.

-Kedar


Ludovic Champenois wrote:
> On 5/11/09 11:45 AM, Kedar Mhaswade wrote:
>> Is this resolved or you still need help? It was not clear while reading
>> your list of complaints if things were working.
>>
>> BTW, it is not asadmin.conf, it is asenv.conf.
> yes, as Petr already mentioned.
>
> And it works only if you specify both values:
> AS_JAVA="/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home"
> JAVA_JVM_VERSION="1.6"
>
> Maybe it is something the launcher code on mac should verify -before we
> miserably fails to start-, that the 2 variables have values that work
> together...
> If JAVA_JVM_VERSION="1.5" is inherited from your env, it will fail.
> Ludo
>
>>
>> -Kedar
>>
>> Ludovic Champenois wrote:
>>> 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
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>