Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!

share|improve this question

migrated from Oct 17 '12 at 3:42

This question came from our site for professional and enthusiast programmers.

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).

share|improve this answer
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. – lcsrinaldi Jan 18 '13 at 18:46

You need to reinstall jdk for mac os.

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

share|improve this answer

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

share|improve this answer
Doesn't work :( – lcsrinaldi Oct 17 '12 at 12:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.