How to completely uninstall Java?

Discussion in 'OS X Yosemite (10.10)' started by MacMan988, Aug 16, 2014.

  1. MacMan988 macrumors 6502a

    Joined:
    Jul 7, 2012
    #1
    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?
     
  2. joedec, Aug 16, 2014
    Last edited: Aug 16, 2014

    joedec macrumors 6502

    joedec

    Joined:
    Jul 25, 2014
    Location:
    Cupertino
    #2
    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.
     
  3. MacMan988 thread starter macrumors 6502a

    Joined:
    Jul 7, 2012
    #3
    Thank you for the reply. I guess I should not mess around these two executables it seems.
     
  4. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
  5. joedec macrumors 6502

    joedec

    Joined:
    Jul 25, 2014
    Location:
    Cupertino
    #5
    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.
     

    Attached Files:

Share This Page