Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm running Lion (10.7), and need to use JDK 6 for development, but previously I had installed JDK 7 and I can't seem to get it uninstalled.

I ran the JDK 6 installer and seems to be installed in /System/Library/Java/JavaVirtualMachines/1.6.0.jdk, and JDK 7 seems to be installed in /System/Library/Frameworks/JavaVM.framework/Versions/A

Somewhere along the lines my Java Preferences seems to have been deleted (not by me).

I tried to delete everything (as described here) in /System/Library/Java/JavaVirtualMachines/ and /System/Library/Frameworks/JavaVM.framework/ and then do a fresh install of JDK 6, but both JDK 6 and 7 came back!

Worse /usr/bin/{java,javac} point to JDK 7.

Does anyone know how I can delete JDK 7? (And maybe get back my Java Preferences?)

share|improve this question
1  
In most IDE's you can set the version of Java you want to use for development, if you have several versions installed. In Eclipse this is done under Preferences -> Java -> Installed JREs – tor Mar 14 at 4:16
2  
Have you already tried the steps mentioned here?docs.oracle.com/javase/7/docs/webnotes/install/mac/… – ACB Mar 14 at 6:12
@ABC Ah you're right! JDK 7 is installed to /Library/Frameworks not /System/Library/Frameworks if you write up that answer I'll accept it. Thanks. – Petriborg Mar 14 at 11:08

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.