码迷,mamicode.com
首页 > 编程语言 > 详细

JAVA_HOME not recognized by tomcat7 in Ubuntu

时间:2017-06-02 11:38:59      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:hang   $path   source   添加   tomcat7   pen   exp   color   nbsp   

vi .bashrc 添加:

export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
source .bashrc

changed /etc/init.d/tomcat7 to point to oracle Java8 which is missing here!

JDK_DIRS="/usr/lib/jvm/default-java ${OPENJDKS} /usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun /usr/lib/jvm/java-7-oracle **/usr/lib/jvm/java-8-oracle**"

 

JAVA_HOME not recognized by tomcat7 in Ubuntu

标签:hang   $path   source   添加   tomcat7   pen   exp   color   nbsp   

原文地址:http://www.cnblogs.com/lwmp/p/6931981.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!