I accidentally deleted /System/Library/Frameworks/JavaVM.framework, and now i can't use any command like java, javac, etc.. even if i have java installed. So someone know how to restore this folder (no, i do not have time machine configured)? Or know to do some workarounds to java keep working again on command line?

Thanks a lot!


3 Answers 3


I accidentally deleted JavaVM.framework as well. After some googling I came across this great answer to a similar question on StackOverflow. Thanks to that answer I was successful in restoring the framework from the JavaDeveloper dmg you can find at the Apple Developer site (it is probably available elsewhere, but direct from the source seemed like a good way to go).

  • I reinstalled all my OS because i couldn't find any solutions for my problem. But i will keep this in mind, thanks for the answer.
    – lhrinaldi
    Commented Jan 18, 2013 at 18:46

You need to reinstall jdk for mac os. http://www.wikihow.com/Install-the-JDK-(Java-Development-Kit)-on-Mac-OS-X

The download package is java_for_os_x rather than jdk-macosx from oracle website.


Try deleting contents in /Library/Java/JavaVirtualMachines and re-installing java

  • 1
    Doesn't work :(
    – lhrinaldi
    Commented Oct 17, 2012 at 12:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .