You need to run build with JDK or have tools.jar on the classpath
问题 I'm using Eclipse Luna to develop java maven applications. I am, or was, but am again now, using jdk1.7 as my default installed JRE. After an update from SVN that I made, I started getting this error on my pom.xml files: You need to run build with JDK or have tools.jar on the classpath. If this occures during eclipse build make sure you run eclipse under JDK as well (com.mysema.maven:apt-maven-plugin:1.0.6:process:default:generate-sources) I noticed that my jdk1.7 installation was GONE from