+ -
当前位置:首页 → 问答吧 → 为什么调用函数没有输出,

为什么调用函数没有输出,

时间:2010-10-04

来源:互联网

用的ubuntu 10.04 LTS 解压 tomcat 到 /root/tomcat6 ,安装了jdk1.6.0_21,测试并且安装 成功.
设置了一系列的环境变量:
JAVA_HOME=/root/jdk1.6.0_21
JRE_HOME=/root/jdk1.6.0_21/jre
CATALINA_HOME= /root/tomcat6
CATALINA_BASE= /root/tomcat6
CATALINA_TMPDIR= /root/tomcat6/temp
CLASSPATH=/root/jdk1.6.0_21/lib: /root/tomcat6/lib
PATH= /root/tomcat6/bin:/root/jdk1.6.0_21/bin
能设置的我都设置了,就是不行,出现错误说:
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program

作者: itlover_xzb   发布时间: 2010-10-04