Cannot Uninstall Java 7 JDK on Mac OS X (Mountain Lion 10.8.4)

I tried to find the clock trying to figure out how to remove the Java 7 JDK on my Mac, as it continued to crash both Eclipse and some of the fancy Minecraft packages. I tried to restore back to the Java 6 JDK that is provided by Apple. I tried to take a look at the Oracle site to try to figure out how to fix this problem. If you scroll down the page, you will see where it says that you are removing the use of sudo. I can’t find the Java folder inside the Library, I am also trying to use the Go To Folder function in the Finder, but it seems I cannot find it. I also tried through Terminal and still can not find the folder. No one seems to have encountered this problem before. I asked on the forum sites and could not find the answer. Please reply as soon as possible!

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

+6
source share
3 answers

You can look inside:

/Library/Java/JavaVirtualMachines 

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

+12
source

If you cannot find the Java home, open a terminal and enter:

 env 

search or SOMETHING THAT MY MAY NOT be the same as yours

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

Your Java is installed here

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

to remove just uninstall the java version:

 /System/Library/Java/JavaVirtualMachines 

with

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

Note. Sometimes Java is installed in / System / Library, but sometimes it is installed in / Library, so you cannot find the Java in / Library suggested in the Oracle document.

+5
source

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

+1
source

Source: https://habr.com/ru/post/950865/


All Articles