1. 程式人生 > >運行maven命令的時候出現jre不正確

運行maven命令的時候出現jre不正確

chan variable locate req ogr ins style div var

出錯詳情:

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不正確