JAVA_HOME not recognized by tomcat7 in Ubuntu

Posted 斜月三星一太阳

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JAVA_HOME not recognized by tomcat7 in Ubuntu相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

Docker Python2.7容器中安装第三方库GCC提示:file not recognized: File format not recognized

linux下qt配置的opencv出现libopencv_calib3d.so: file not recognized: File format not recognized

Server did not recognize the value of HTTP Header SOAPAction 错误怎么解决?

Transport scheme NOT recognized: [stomp]

"Ipconfig" not recognized as an internal command

AS问题解决系列3—iCCP: Not recognizing known sRGB profile