How do I specify the JDK for a GlassFish domain?

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

    I'm working on a Mac, OSX 10.9. I recently had to update my JDK to 1.7 for some VPN software. The application I'm working runs on JDK 1.6, so a GlassFish had to run with JDK 1.6. It took a minute to iron this out, but here's how it went for me. I work with the NetBeans IDE by the way.

    1. My GlssFish configuration file

      /Applications/NetBeans/glassfish-3.1.2.2/glassfish/config/asenv.conf

    2. Path to JDK 1.6

      /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home

    3. I added the following line to the bottom of my asenv.conf file

      AS_JAVA=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home

提交回复
热议问题