Tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
来源:互联网 发布:python导入自定义模块 编辑:程序博客网 时间:2024/06/05 07:57
一眼就能看出来是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)
- Nginx配置详解
- 解决Linux下启动Tomcat遇到Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- 如何申请Pycharm的学生免费版许可?
- java内存分配
- 数据结构_求二叉树中度为0,为1,为2的节点的个数以及所有节点个数(待完善)
- Tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Roads and Libraries(最小生成树)
- MVC 从控制器将数据对象赋值给前端JS对象
- Redis主从同步数据详解
- HR是这样筛选简历的,不知道就完蛋!
- 通过Post方式调用webservice
- 进制互转
- 面试题总结2
- JAVA web项目中的no result defined for action xxxAction and result input 错误