- 论坛徽章:
- 0
|
我有2台aix5.1的机器,其中一台A机os版本是5100.09上已经装好jdk14_64,另一台B机是5100.07版本的,我把A机的/usr/jdk14_64打包后ftp到B机,在B机上建了/usr/jdk14_64目录解包。JAVA_HOME=/usr/jdk14_64, CLASSPATH=/usr/jdk14_64/lib:/usr/jdk14_64/jre/lib:/usr/jdk14_64/lib/dt.jar:/usr/jdk14_64/lib/tools.jar:/usr/jdk14_64/jre/lib/rt.jar, PATH=.:/usr/jdk14_64/bin:/usr/jdk14_64/jre/bin ATH.
java -version 可以看到是jdk14 64位, tomcat5.028 是tar 开的,但进tomcat的bin下startup。sh 出错:
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
env |grep JAVA
JAVA_HOME=/usr/jdk14_64
env|grep PATH
SHLIB_PATH=/oracle/app/oracle/product/9.2.0/lib:
PATH=.:/usr/jdk14_64/bin:/usr/jdk14_64/jre/bin:.:/bill6/aicbs/bin:/opt/freeware/bin:/usr/bin:/etc:/usr/sbin:/usr/bin/X11:/sbin:/oracle/app/oracle/product/9.2.0/bin:/aitools/bin::/usr/vacpp/bin:/usr/lpp/cics/bin/:/usr/altibase_home/bin
CLASSPATH=:/usr/jdk14_64/lib:/usr/jdk14_64/jre/lib:/usr/jdk14_64/lib/dt.jar:/usr/jdk14_64/lib/tools.jar:/usr/jdk14_64/jre/lib/rt.jar:.
LOCPATH=/usr/lib/nls/loc
LD_LIBRARY_PATH=/bill6/aicbs/lib:/oracle/app/oracle/product/9.2.0/lib:/usr/lib
SYS_LOG_PATH=/bill6/aioss/gprs/pre/log
LIBPATH=.:/oracle/app/oracle/product/9.2.0/lib32:/oracle/app/oracle/product/9.2.0/lib:/oracle/app/oracle/product/9.2.0/ctx/lib:/bill6/aicbs/lib:/opt/freeware/lib:/usr/lpp/cics/lib:/usr/local/lib/oratcl4.1:/usr/lpp/ctg/bin:/usr/lib
请高手指点。 JDK14要重装吗? |
|