idea创建web项目时启动tomcat出现The JAVA_HOME environment variable is not defined correctly
来源:互联网 发布:nginx 配置tomcat跳转 编辑:程序博客网 时间:2024/04/27 19:13
idea创建web项目教程
http://www.jianshu.com/p/455c7c11dfb2
JAVA_HOME定义不正确
解决方法:
把Tomcat的jre配置改成jdk路径(也就是去掉jre)
在idea启动tomcat出现The JAVA_HOME environment variable is not defined correctly的解决
时间:2016-09-01 10:37:39 阅读:503 评论:0 收藏:0 [点我收藏+]
标签:
情况:某套代码是用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路径,就正常了
阅读全文
0 0
- idea创建web项目时启动tomcat出现The JAVA_HOME environment variable is not defined correctly
- Tomcat the java_home environment variable is not defined correctly
- TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly
- TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly
- TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly
- TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly
- The JAVA_HOME environment variable is not defined correctly
- JRE_HOME错误 The JAVA_HOME environment variable is not defined correctly
- the java_home environment variable is not defined correctly
- JRE_HOME错误 The JAVA_HOME environment variable is not defined correctly
- 解决The JAVA_HOME environment variable is not defined correctly
- 解决The JAVA_HOME environment variable is not defined correctly
- 双击startup.bat,启动不了tomcat,JAVA_HOME environment variable is not defined correctly
- 双击startup.bat,启动不了tomcat,JAVA_HOME environment variable is not defined correctly
- tomcat运行出现出现问题(the JRE_HOME environment variable is not defined correctly This environment variabl)
- the java_home environment variable is not defined correctly This environment variable is needed to r
- Tomcat The JRE_HOME environment variable is not defined correctly
- linux下tomcat出现The BASEDIR environment variable is not defined correctly
- ios代码习惯
- 2017年国内已经开设机器人工程专业(080803T)高校名单
- Kotlin_类的继承
- JVM进阶(十六)——JAVA 双亲委派模型
- 更快的读入优化fread
- idea创建web项目时启动tomcat出现The JAVA_HOME environment variable is not defined correctly
- 权限的概述+系统权限+对象权限
- Java服务器接收上传的文件
- favicon.ico 制作
- 安卓4大组件之一服务Service
- QJson的使用
- JVM进阶(十七)——准备-解析-初始化
- hdu 5307 He is Flying
- springmvc实现多文件上传