Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacMan988

macrumors 6502a
Original poster
Jul 7, 2012
867
145
Hi, I have java 7 installed on Yosemite. Can someone please help me to find instruction on how to remove java completely from OS X? I followed instruction given in the Oracle website and removed some of its components. Is the "/usr/bin/java" and "/usr/bin/javac" also installed by Oracle's installation? Can they be safely removed?
 

joedec

macrumors 6502
Jul 25, 2014
443
51
Cupertino
Hi, I have java 7 installed on Yosemite. Can someone please help me to find instruction on how to remove java completely from OS X? I followed instruction given in the Oracle website and removed some of its components. Is the "/usr/bin/java" and "/usr/bin/javac" also installed by Oracle's installation? Can they be safely removed?

Those files ship from Apple. I assume the developer kit, I've never installed the Oracle product and I have both.

$ ls -l /usr/bin/java
lrwxr-xr-x 1 root wheel 74 Oct 25 2013 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
$ ls -l /usr/bin/javac
lrwxr-xr-x 1 root wheel 75 Oct 25 2013 /usr/bin/javac -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javac

Edited correction, the above is from Mavericks (too many boxes around here) the below is Yosemite without Xcode, so I assume they ship with Mac OS 10.10

$ ls -l /usr/bin/java
lrwxr-xr-x 1 root wheel 74 Jul 25 17:46 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
$ ls -l /usr/bin/javac
lrwxr-xr-x 1 root wheel 75 Jul 25 17:46 /usr/bin/javac -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javac

Sorry for any confusion.
 
Last edited:

MacMan988

macrumors 6502a
Original poster
Jul 7, 2012
867
145
Thank you for the reply. I guess I should not mess around these two executables it seems.
 

joedec

macrumors 6502
Jul 25, 2014
443
51
Cupertino
Does Java get installed with Yosemite?

No Java is not installed. If you run /usr/bin/java you get a pointer to the Oracle Java product.

$ /usr/bin/java
No Java runtime present, requesting install.

And this window comes up.
 

Attachments

  • Screen Shot 2014-08-17 at 6.29.26 AM.jpg
    Screen Shot 2014-08-17 at 6.29.26 AM.jpg
    22.8 KB · Views: 186
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.