How do I specify the JDK for a GlassFish domain?

前端 未结 9 2101
一生所求
一生所求 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:26

    Similar error with Glassfish 4.0 and several JDK installed:

    SEVERE: GlassFish requires JDK 7, you are using JDK version 6.
    

    There is no AS_JAVA reference in "C:\glassfish\config\asenv.bat" by default. After adding manually

    set AS_JAVA=C:\Program Files\Java\jdk1.7.0_25 
    

    it works.

提交回复
热议问题