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

出错详情:

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即可

 

猜你喜欢

转载自www.cnblogs.com/maigy/p/10777192.html