dev@glassfish.java.net

Re: V3 (trunk) does not start

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Fri, 07 Nov 2008 18:37:07 -0800

Sahoo wrote:
> Jerome Dochez wrote:
>> Anyhow, I think the most compatible without being a fascist would be :
>>
>> 1. installer checks that JDK version 1.6 is in the path
>> 1.a if yes, do not set AS_JAVA
>> 1.b if no, set AS_JAVA to the JDK 1.6 location assuming it can
>> find it from the registry (windows) or ask the user.
>> 1.c remember that on Solaris, most linux and the mac, the JDK
>> can be found in most cases automatically.
>>
>> 2. asadmin.sh and asadmin.bat starts using AS_JAVA from asenv.conf
>> or if set as an environment variable.
>>
>> 3. for zipped installations, deliver asenv.conf without an AS_JAVA
>> setting. user is responsible for setting the JDK.
>>
> I will add "setting the JDK either in PATH or in asenv.conf."
>> 4. should we also do something like asadmin --jdkhome
>> /usr/java/jdk1.6 ... ?
> Agree with all but #4. For #4, PATH should be used.
>
> We should change the launcher logic to just use the JDK that is used by
> asadmin client. Whether that JDK is picked up from asenv.conf or from
> PATH is governed by #1, #2 and #3 above.

Huh? Launcher logic is already well defined. (There is a case where
an admin might want a domain to start with a specific JDK
(java-config_at_java-home) in domain.xml).

It is the asadmin's VM that's in limbo.

-Kedar

>
> Thanks,
> Sahoo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>