Neither the JAVA_HOME nor the JRE_HOME environment variable is defined

执行远程shell,启动远程机器的tomat时遇到次错误。后来发现原来是远程机器的.profile被人改掉了!

在.profile里加入 

export JAVA_HOME=/home/evans/jdk1.6.0_17
export PATH=$JAVA_HOME/bin/:$PATH

原文地址:https://www.cnblogs.com/zhanghaoh/p/4024668.html