On 3/17/09 9:53 PM, Jerome Dochez wrote:
> the easiest way to change the JDK location used by glassfish is to
> modify the asenv.conf AS_JAVA variable.
This will work, but you still need to have a JRE or JDK in your path for
running the script asadmin that uses the 'java' command getting it from
your environment/path, not from AS_JAVA ... So If you have nothing in
your path, asadmin will still fail...(and all other commands: wsimport,
wsgen, stopserv, jspc...as well) in the glassfish bin dir. Bug?
Ludo
>
> jerome
>
> On Mar 17, 2009, at 3:01 AM, glassfish_at_javadesktop.org wrote:
>
>> Yes. I installed Glassfish and noticed that it used the JRE and not
>> the JDK. I got a noJDK-exception. In the Admin Console, at
>> 'Application Server' - 'JVM settings', the default value for Java
>> Home is ${com.sun.aas.javaRoot}. If I change that to the location of
>> my JDK, it works. But the variable ${com.sun.aas.javaRoot} is also
>> used at other places, so it makes more sense to have this variable
>> point to the right location.
>> In the meantime I also introduced a JAVA_HOME environment variable
>> (My Computer- Advanced- Environment Variable), pointing at my
>> JDK-location. At first, this did not seem to work, but apparently it
>> does now. So it is not much of a problem anymore, but still I would
>> like to know how I can check the value of ${com.sun.aas.javaRoot} .
>> [Message sent by forum member 'driesknottnerus' (driesknottnerus)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=337380
>>
>> ---------------------------------------------------------------------
>> 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
>