user2644292
user2644292

Reputation: 71

Can't Uninstall Java 7 JDK on Mac OS X (Mountain Lion 10.8.4)

I tried searching for hours trying to figure out how to uninstall Java 7 JDK on my Mac since it kept crashing both Eclipse and some Minecraft mod packs. I tried to restore back to Java 6 JDK instead which is provided by Apple. I tried looking at Oracle's site to try to find out how to fix the problem. If you scroll down to the bottom of the page you'll see where it tells you do uninstall using sudo. I can't find the Java folder inside of Library, I try using the Go To Folder function too in Finder but it seems I cannot find it. I've also tried through Terminal and still cannot find the folder. It seems that no one else has had this problem before.. I've asked on forum sites and cannot find an answer. Please respond as quick as possible!

http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html

Upvotes: 7

Views: 20354

Answers (3)

tangrammer
tangrammer

Reputation: 3061

in my current case: sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk

Upvotes: 1

Anastasios Andronidis
Anastasios Andronidis

Reputation: 6720

You can look inside:

/Library/Java/JavaVirtualMachines

If there is a folder of jdk.1.7 or similar, you can delete it. Restart your programs and they will get Java 1.6 as a default.

Upvotes: 14

Louis Hong
Louis Hong

Reputation: 1070

If you can't find the Java Home, open up terminal and enter:

env

look for or SOMETHING LIKE THIS Mine might not be the same as yours

JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.7/Home

This is where your Java is installed

If you want to see it in Finder then open up Finder and press Command + Shift + G and enter in the path to java home.

to uninstall simply remove the java version from :

/System/Library/Java/JavaVirtualMachines

with

cd /System/Library/Java/JavaVirtualMachines
rm -r some.version.java.jdk

Note: Sometimes Java is install in /System/Library but sometimes it's installed on /Library, so that's why you couldn't find Java in /Library which the Oracle document suggested.

Upvotes: 5

Related Questions