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

运行maven命令的时候出现jre不正确

时间:2019-04-27 00:34:22      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:compile   col   解决   jdk   main   设置   解决方案   运行   span   

出错详情:

1 Unable to locate the Javac Compiler in: 
2 C:\Program Files\Java\jre1.6.0_07\..\lib\tools.jar 
3 Please ensure you are using JDK 1.4 or above and 
4 not a JRE (the com.sun.tools.javac.Main class is required). 
5 In most cases you can change the location of your Java 
6 installation by setting the JAVA_HOME environment variable. 

解决方案:

  将jre设置为jdk即可

 

 

运行maven命令的时候出现jre不正确

标签:compile   col   解决   jdk   main   设置   解决方案   运行   span   

原文地址:https://www.cnblogs.com/maigy/p/10777192.html

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