码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-03-29 21:15:16      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:jdk   ide   project   ips   clean   run   JD   environ   lips   


(1)需要设置JDK
Windows -> Perferences -> Java -> Installed JRES
加入JDK 如:D:\Program Files\Java\jdk1.8.0_92
Maven update
Maven clean
project clean
build project eclipse::eclipse


(2)环境的问题。
在maven下conf文件夹里的setting中的加入:
<profile>
<id>jdk18</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>

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

标签:jdk   ide   project   ips   clean   run   JD   environ   lips   

原文地址:https://www.cnblogs.com/scode2/p/8671941.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!