Skip to main content

Missing tools.jar at: /Library/Java/JavaVirtualMachines/JDK 1.7.0 Developer - OSX Lion

1 reply [Last post]
jaque_noire
Offline
Joined: 2012-02-21
Points: 0

In our maven procjet we raised the language level from 6 to 7.

I also installed JDK 1.7.0 Developer Preview.

But i am not able to run a maven build with jspc. It leads to the following error message:

Exception in thread "main" java.lang.AssertionError: Missing tools.jar at: /Library/Java/JavaVirtualMachines/JDK 1.7.0 Developer Preview.jdk/Contents/Home/Classes/classes.jar. Expression: file.exists()

Any suggestions? :)

thx in advance!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
claudio_nieder
Offline
Joined: 2011-08-28
Points: 0

The file is now located at:/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/lib/tools.jar

BTW the classes.jar mentioned also does not exist anymore. Like the other Oracle provided JDK it now uses rt.jar which is found here: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/rt.jar

claudio