Tomcat在命令行 配置startup.bat时出现:neither the java_home nor jre_hom
来源:互联网 发布:最新小米抢购软件 编辑:程序博客网 时间:2024/06/05 16:10
解决办法:
先看Tomcat的startup.bat,它调用了catalina.bat,而catalina.bat则调用了setclasspath.bat.只要在setclasspath.bat的开头声明环境变量,如我的就是:
rem —————————————————————————
rem Set CLASSPATH and Java options
rem
rem
rem —————————————————————————
set JAVA_HOME=D:\Java\jdk1.6.0_11
set JRE_HOME=D:\Java\jre6
rem Make sure prerequisite environment variables are set
if not “%JAVA_HOME%” == “” goto gotJdkHome
if not “%JRE_HOME%” == “” goto gotJreHome
echo Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
echo At least one of these environment variable is needed to run this program
goto exit.
这样在每次运行startup.bat时就注册了JAVA_HOME,JRE_HOME.控制台窗口关闭后,这两个变量也将消失,不会再占用内存.运行一下,最终提示“信息:Server startup in xxxxx ms”就大功告成了.
借鉴自网友四叶草6143,谢谢他的帮助,原网页:http://www.zybang.com/question/2f040847220f66df1e3fb80463c1f6ca.html?fr=iks&word=neither+the+JAVA_HOME+nor+JRE_HOME+environment+variable&ie=gbk
- Tomcat在命令行 配置startup.bat时出现:neither the java_home nor jre_hom
- Tomcat 问题:为什么运行startup.bat是出现:neither the java_home nor jre_home environment variable is
- tomcat启动时错误Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of th
- 启动tomcat时报Neither the JAVA_HOME nor the JRE_HOME environment variable is defined 的解决方案
- tomcat error: Neither the JAVA_HOME nor the JRE_HOME environment variable is defin
- 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)
- 解决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
- windows 与linux出现 Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- tomcat7.0以上版本运行startup的时候报Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- 解决下载Android Build-tools 19.1.0失败
- android仿黑客帝国字符雨
- OpenGL 模型顶点法向量的计算
- Android 自定义View (一)
- block小谈
- Tomcat在命令行 配置startup.bat时出现:neither the java_home nor jre_hom
- java 多线程1
- 【NOIP】Sequence——暴力
- (NO.00001)iOS游戏SpeedBoy Lite成形记(五)
- 软件测试的完整分类
- 垂直搜索架构(爬虫部分)
- https跳转到http session丢失问题
- React ——第一个程序
- javascript之jquery多级联动下拉框