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

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

时间:2015-12-02 18:23:52      阅读:122      评论:0      收藏:0      [点我收藏+]

标签:

maven 打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

1》(不要用默认的jre ,需要用jdk编译)

ou can choose any of following solution to fix [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

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

  • Click on Windows -> Preferences -> Java -> Installed JREs -> Add -> Standard VM and Select JAVA_HOME. 
技术分享
 
  • Select New JRE from Installed JREs and Press OK
技术分享

pom.xml中控制maven引用的版本
<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin>

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

标签:

原文地址:http://www.cnblogs.com/leo3689/p/5013636.html

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