How do I specify the JDK for a GlassFish domain?

前端 未结 9 2102
一生所求
一生所求 2020-11-28 08:02

I\'ve got GlassFish 2.1.1 installed. I have a 1.5 and a 1.6 JDK installed. Even though my JAVA_HOME variable is set to the 1.5 version (and both \"java -version\" and \"java

9条回答
  •  一个人的身影
    2020-11-28 08:31

    According to the GF Administration Guide:

    For a valid JVM installation, locations are checked in the following order: a. domain.xml (java-home inside java-config) b. asenv.conf (setting AS_JAVA="path to java home")

    I had to add both these settings to make it work. Otherwise 'asadmin stop-domain domain1' wouldn't work. I guess that GF uses a. and asadmin uses b.

    (On Windows: b. asenv.bat)

提交回复
热议问题