Tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
来源:互联网 发布:reactrouter 源码详解 编辑:程序博客网 时间:2024/06/07 23:10
一眼就能看出来是jdk的环境有问题,但是用了这么久的jdk一直都配置的好好的,怎么一到Tomcat上就这么矫情了。
最后查解决方案,原来是我的jdk从官网直接下载的,虽然我修改了java_home,但不太智能的tomcat仍然没有自动识别出java_home路径。
linux解决方法:
编辑文件 /usr/local/tomcat/bin/catalina.sh (根据你自己的jdk路径进行修改) 在文件的正文开头,即正式代码前,大概在99行添加如下代码
1
export
JAVA_HOME=
/usr/local/jdk
2
export
JRE_HOME=
/usr/local/jdk/jre
修改后大概是下面的样子
01
# $Id: catalina.sh 1202062 2011-11-15 06:50:02Z mturk $
02
# -----------------------------------------------------------------------------
03
04
export
JAVA_HOME=
/usr/local/jdk
05
export
JRE_HOME=
/usr/local/jdk/jre
06
07
# OS specific support. $var _must_ be set to either true or false.
08
cygwin=
false
09
darwin=
false
10
os400=
false
11
case
"`uname`"
in
12
CYGWIN*) cygwin=
true
;;
13
Darwin*) darwin=
true
;;
14
OS400*) os400=
true
;;
15
esac .....................
注意:Windows下请修改对应的 catalina.bat
0 0
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- 启动tomcat时报Neither the JAVA_HOME nor the JRE_HOME environment variable is defined 的解决方案
- linux安装tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- linux安装tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- 启动tomcat时报Neither the JAVA_HOME nor the JRE_HOME environment variable is defined 的解决方案
- Tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined 完美解决(tomcat error)
- 嗡ong 咕gū噜lū 咕gū列liè 啥lìn 梭suō哈hā
- LeetCode-Balanced Binary Tree && 二叉树的深度 && 二叉树的平衡
- bower解决js的依赖管理备记
- mysql navicat导出表的三种方法
- [综合面试] 2014校招暑假实习生面经(阿里、百度offer)
- Tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- poj3352
- 用meta-data配置参数
- (四)脚本上下文
- MacOS安装mod_python
- Cenos 6.4 下安装 Cassandra 2.0.7
- 清除浮动
- 有很多人都自己喜欢蛋疼,那就尽情的疼吧。。。
- 哦哈水电费偶回去啊够了去韩国哦亲联合国哦亲换个怄气