Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Oct 17 '12 at 3:42

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

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

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. –  lucasrinaldi Jan 18 '13 at 18:46

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

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

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.

share|improve this answer

Your Answer

 
discard

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.