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.