Maven в Eclipse жалуется, что «Невозможно найти компилятор Javac» при изменении POM

У меня появляется сообщение об ошибке каждый раз, когда я меняю свой pom.xml в eclipse.

Build errors for myapp; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project web: Compilation failure
Unable to locate the Javac Compiler in:
  C:\Program Files (x86)\Java\jre6\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable

У меня есть установить переменную среды JAVA_HOME. Это: JAVA_HOME = D: \ Java \ jdk1.6.0_23

Спасибо.

23
задан Ripon Al Wasim 29 April 2015 в 12:27
поделиться