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

posted on 2014-10-14 16:23  菜鸟的春天  阅读(228)  评论(0编辑  收藏  举报

导航