简体   繁体   中英

specify the jdk for a glassfish domain Linux

I already know that similar answer has been written ( How do I specify the jdk for a glassfish domain? ) but it was for windows, my system is linux and i cant'resolve even if I tried the suggested solution... i've Glassfish 3 installed in TurnKey Debian. I have JDK a 1.7 installed in /opt/jdk1.7.0_21 JAVA_HOME points to /opt/java which is a simbolic link for /opt/jdk1.7.0_21 My asenv.conf:

AS_IMQ_LIB="../../mq/lib"
AS_IMQ_BIN="../../mq/bin"
AS_CONFIG="../config"
AS_INSTALL=".."
AS_DEF_DOMAINS_PATH="../domains"
AS_DEF_NODES_PATH="../nodes"
AS_DERBY_INSTALL="../../javadb"
AS_JAVA="/opt/jdk7"

/opt/jdk7 is another ln that points to /opt/jdk1.7.0_21 When i try to start glassfish (single domain, domain 1) it says: /bin/java: not found

what is wrong??

/opt/jdk7/bin/java (or /opt/jdk1.7.0_21/bin/java ) should point to the java executable. If that doesn't exist, modifying AS_JAVA to:

AS_JAVA="/opt/jdk7/jre/"

or

AS_JAVA="/opt/jdk1.7.0_21/jre/"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM