首页 > 其他 > 详细

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

时间:2015-12-02 18:20:52      阅读:295      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!