请教..为什么Idea 下javaWeb开发的时候提示 NB: JAVA_HOME should point to a JDK not a JRE

czr_Tom 发布于 2016/05/14 11:09
阅读 737
收藏 0


请问需要怎样处理这个问题!

[2016-05-14 10:51:14,765] Artifact web_demo:war exploded: Server is not connected. Deploy is not available.

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
Disconnected from server

加载中
0
H
HaydnSyx
jdk是为了开发时使用的,因为可以进行debug之类的,而jre是为正式部署时用得
0
leafyi
leafyi
项目没有配置jdk吧?
0
百世经纶之傲笑红尘
百世经纶之傲笑红尘
Where is your jdk position
百世经纶之傲笑红尘
百世经纶之傲笑红尘
now you must to click setings
0
leafyi
leafyi
把自带的jdk换成你安装的jdk
返回顶部
顶部