Perhaps you are running on a JRE rather than a JDK
Posted 西门吹牛
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Perhaps you are running on a JRE rather than a JDK相关的知识,希望对你有一定的参考价值。
在Eclipse中跑maven项目时,出现上面的问题:
1、有可能你的环境变量配置是在jre上面的,所以你要检查一下你配置文件,PATH和CLASSPATH都要检查
2、eclipse默认是跑在jre上的,但是maven插件需要使用jdk,因此需要在eclipse修改Installed JRES
修改地址:【Window】-->【Prefrences】-->【Java】-->【Installed JREs】,更新为你本机所装的JDK
以上是关于Perhaps you are running on a JRE rather than a JDK的主要内容,如果未能解决你的问题,请参考以下文章
Maven Install报错:Perhaps you are running on a JRE rather than a JDK?
mvn命令异常:Perhaps you are running on a JRE rather than a JDK? 异常已解决
mvn命令异常:Perhaps you are running on a JRE rather than a JDK? 异常已解决
mvn命令异常:Perhaps you are running on a JRE rather than a JDK? 异常已解决
Maven项目出现Perhaps you are running on a JRE rather than a JDK?
Maven项目 报错No compiler is provided in this environment. Perhaps you are running on a JRE rather than