在idea启动tomcat出现The JAVA_HOME environment variable is not defined correctly的解决
2016-09-01 09:20
846 查看
情况:某套代码是用jdk 1.6编译,然后电脑的JAVA_HOME系统变量配的是jdk1.7的,在tomcat启动时报错
The JAVA_HOME environment variable is not defined correctly,中文意思是JAVA_HOME定义不正确,去系统变量看指向的是jdk 1.7,当然不正确了,那如何为这个tomcat单独指定一个JAVA_HOME?
方法:
Tomcat的jre配置,原来是
改成jdk路径(也就是去掉jre)
PS:在myeclipse里tomcat配置的是jdk,然而idea配置的是jre路径,估计idea其实也是要jdk路径的,只是从系统变量里面读,当配上jdk路径,就正常了
The JAVA_HOME environment variable is not defined correctly,中文意思是JAVA_HOME定义不正确,去系统变量看指向的是jdk 1.7,当然不正确了,那如何为这个tomcat单独指定一个JAVA_HOME?
方法:
Tomcat的jre配置,原来是
改成jdk路径(也就是去掉jre)
PS:在myeclipse里tomcat配置的是jdk,然而idea配置的是jre路径,估计idea其实也是要jdk路径的,只是从系统变量里面读,当配上jdk路径,就正常了
相关文章推荐
- idea创建web项目时启动tomcat出现The JAVA_HOME environment variable is not defined correctly
- 2个问题,解决tomcat启动一闪而过和运行tomcat/bin目录下的startup.bat时报错(the CATALINA_HOME environment variable is not defined correctly)
- 解决Intellij Idea里tomcat启动报The JRE_HOME environment variable is not defined correctly的错误
- Tomcat 通过java程序启动和停止,以及解决The CATALINA_HOME environment variable is not defined correctlyThis environ
- 运行Tomcat出现the JRE_HOME environment variable is not defined correctly 的解决办法
- tomcat启动一闪而过解决办法报错The CATALINA_HOME environment variable is not defined correctly
- 解决Linux下启动Tomcat遇到Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- tomcat配置环境变量后在cmd中输入startup出现the JRE_HOME environment variable is not defined correctly This environ
- TOMCAT启动时报错:the CATALINA_HOME environment variable is not defined correctly
- 运行Tomcat出现the JRE_HOME environment variable is not defined correctly
- 解决Linux下启动Tomcat遇到Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- linux下启动tomcat报错:The BASEDIR environment variable is not defined correctly解决方法
- Tomcat启动报错,The CATALINA_HOME environment variable is not defined correctly
- 解决Linux下启动Tomcat遇到Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- 启动Tomcat失败,错误提示:the JRE_HOME environment variable is not defined correctly
- 双击startup.bat,启动不了tomcat,JAVA_HOME environment variable is not defined correctly
- 启动Tomcat错误 JRE_HOME错误 :The JRE_HOME environment variable is not defined correctly
- Tomcat安装后出现the JRE_HOME environment variable is not defined correctly
- windows tomcat 启动报错TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly
- Tomcat the java_home environment variable is not defined correctly