一,tomcat启动时错误 1:The JAVA_HOME environment variable is not defined This environment variable is needed to run this program: Re:没有在在tomcat的配置文件.bash_profile中设置环境变量JAVA_HOME,具体设置方法为:加入如下几行: JAVA_HOME=/home/tomcat/j2sdk1.4.2_08(具体值要以实际的jdk安装路径为准) export…