Error while running mvn compile (tools.jar not found)



I tried to create a Maven project and while the dependency manager seems to be able to find and download packages correctly, I get a strange error right after:

Embedded error: tools.jar not found: /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar

I’ve never seen this error before in any of linux distros I’ve ran Maven. Is something missing from the Java SDK the virtual hosts have?

I can upload the pom.xml and the class file if needed, but they’re just a toy example.