In Windows 7 - 64 bit, there is a permissions problem which prevents the installer from unpacking the file C:Program FilesJavajdk1.6.xxlibools.jar
into your local. This jar file is what maven-compiler-plugin
version 3.x uses instead of the usual javac
Solution:
Run, as an administrator, the Java JDK installer! And make sure the tools.jar
is sitting in the C:Program FilesJavajdk1.6.xxlib
In case you are using m2e maven integration plugin, you want to see the file is visible to Eclipse via the following steps inside Eclipse:
- Go to Window -> Preferences -> Java -> installed JREs
- Select the JDK you are using (C:Program FilesJavajdk1.6.xx)
- Press Edit to see the list of jars including tools.jar, OW you can add it as Add External JAR
Then configure the maven run through these steps:
- Run->Run configurations->Fill in Name, Base directory and Goals.
- Then in the same window move to the JRE tab and point to the JDK jdk1.6.xx
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…