Neither the JAVA_HOME nor the JRE_HOME environment variable is defined 完美解决(tomcat error)
来源:互联网 发布:为什么选择软件测试 编辑:程序博客网 时间:2024/05/18 00:32
error:
Linux下启动和关闭tomcat报错,如下图所示:
原因:
因为启动tomcat会调用tomcat安装文件中的startup.bat,而它调用了catalina.bat则调用了setclasspath.bat。因此需要在setclasspath.bat的开头手动声明环境变量。
解决方案:
用vim打开tomcat的bin目录下的setclasspath.sh,添加JAVA_HOME和JRE_HOME两个环境变量(下图红色方框内),两个环境变量路径为您安装的java JDK的路径。
windows下将export改为set即可。
保存并且退出即可。
再次使用service tomcat start没报错,如下图所示:
成功用service tomcat start开启tomcat服务。
1 0
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined 完美解决(tomcat error)
- 解决Linux下启动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
- 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 的解决方案
- Android测试之:MonkeyScript与MonkeyRunner常用API
- 基于JDBC 的数据库返回数据Resultset 数据绑定到Javabean
- 第八周 输出星号 1
- 75个中文编程开发类网站合集
- asp.net 微信开发入门级Token验证
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined 完美解决(tomcat error)
- Hibernate 查询 Projections 类使用
- linux图形框架DRI
- 解决ubuntu创建热点手机无法识别
- 语音群呼系统给企业带来实际上的价值
- 06上机练习2
- 10.18 T1
- (C++)二叉树的建立与递归方式遍历
- C# DES加密字符串