No compiler is provided in this environment.Perhaps you are running on a JRE rather than a JDK?报错解决

No compiler is provided in this environment.Perhaps you are running on a JRE rather than a JDK?报错解决

Maven install 时出现如上错误。

Eclipse-->Window-->preferences-->Java-->Installed JREs 查看jdk:

No compiler is provided in this environment.Perhaps you are running on a JRE rather than a JDK?报错解决

发现此时的编译器为jre1.8,将jre1.8替换为jdk1.8:

No compiler is provided in this environment.Perhaps you are running on a JRE rather than a JDK?报错解决

选择Execution Environments 选择JavaSE-1.8并在右侧框栏中选择jdk1.8(非jre)。

update project 项目,Maven Install解决

上一篇:回顾bidirectional path tracing


下一篇:如何解决Asp.Net中不能上传压缩文件的问题