HT201360: Redirected to HT202821 [was About Java for Mac OS X v10.6 Update 12]

Learn about Redirected to HT202821 [was About Java for Mac OS X v10.6 Update 12]
loladoc

Q: How do I remove Java from my Mac?

How do I completely remove Java from my Mac?

iPad 2, Mac OS X (10.6.8)

Posted on Feb 3, 2013 11:18 AM

Close

Q: How do I remove Java from my Mac?

  • All replies
  • Helpful answers

  • by WZZZ,Apple recommended

    WZZZ WZZZ Feb 3, 2013 11:32 AM in response to loladoc
    Level 6 (13,112 points)
    Mac OS X
    Feb 3, 2013 11:32 AM in response to loladoc

    You don't need to remove it completely. It's deeply embedded in the system and removing it is no simple task. But if you open Java Preferences.app in Utilities, you can disable the Java Runtime Environment, which is where all the open vulnerabilities are. Just uncheck all three boxes and you're done. You can also disable the Java plugin in the browser.

     

    Screen shot 2013-02-03 at 2.31.33 PM.png

  • by Macology,Apple recommended

    Macology Macology Feb 22, 2013 10:18 AM in response to loladoc
    Level 2 (383 points)
    Desktops
    Feb 22, 2013 10:18 AM in response to loladoc

    The other poster is incorrect. You absolutely may entirely remove Java from your system.

     

    Uninstall Oracle Java 7

    Uninstalling Oracle Java only involves deleting the Java Plugin file JavaAppletPlugin.plugin.


    Note: To uninstall Java 7, you must have Administrator privileges.

    1. Click on the Finder icon located in your dock
    2. Click on Applications tab on the sidebar
    3. In the Search box enter JavaAppletPlugin.plugin
    4. This will find the JavaAppletPlugin.plugin file
    5. Right click on JavaAppletPlugin.plugin and select Move to Trash

    From there, empty your trash. As a further measure for security, open up Safari and follow this short list of instructions;

     

    Safari > Preferences > Security > Uncheck "Enable Java"

     

    You can keep Enable JavaScript, as JavaScript is separate from Java and is actually needed for sites like Youtube. The only real loss of uninstalling Java is if you play Minecraft. Otherwise, 0.2% of all major websites actually use Java itself. Your computer will be safer and faster without this broken plugin. Best of luck.

  • by coyote4til7,

    coyote4til7 coyote4til7 Apr 23, 2013 12:15 PM in response to loladoc
    Level 1 (0 points)
    Apr 23, 2013 12:15 PM in response to loladoc

    Macology's reply is incorrect. While his instructions are the official Oracle instructions they merely delete the JavaApplePlugin. That's not an uninstall. Given (1) the ungoing security problems with Java in the browser and (2) that java -version does not report what you expect (Java Version 7 Update X), I'd love to find full uninstlall directions. Oh... want to make sure you're secure, turn it back on in the browsers. Uhm... right.

  • by Macology,

    Macology Macology Apr 24, 2013 8:42 AM in response to coyote4til7
    Level 2 (383 points)
    Desktops
    Apr 24, 2013 8:42 AM in response to coyote4til7

    You are incorrect. If you follow the instructions I have given and leave JavaScript disabled, any attempt to use a Java based site will result in being told that you need Java installed. And JavaScript is separate from Java itself. Do not spread fear, uncertainty, doubt and misinformation n these forums. People here need assistance, lies about being unable to remove third party software. Java is currently locked by default by Apple. So if a user opts to install it anyways, this is the method to remove it.

  • by chanlon,

    chanlon chanlon Apr 25, 2013 4:59 PM in response to loladoc
    Level 1 (4 points)
    Apr 25, 2013 4:59 PM in response to loladoc

    In the Terminal window Copy and Paste the command below:

    sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin

  • by WZZZ,

    WZZZ WZZZ Apr 26, 2013 3:56 AM in response to chanlon
    Level 6 (13,112 points)
    Mac OS X
    Apr 26, 2013 3:56 AM in response to chanlon

    This nukes it once and for all. Better to move it Disabled Plug-ins, same location, in case it is ever needed in the future. Besides, that's just an alias. It doesn't remove the original.

  • by coyote4til7,

    coyote4til7 coyote4til7 Apr 30, 2013 12:42 PM in response to loladoc
    Level 1 (0 points)
    Apr 30, 2013 12:42 PM in response to loladoc

    After trying various things suggested, here's what I've found (basically a summary of the above with a few additional details)

     

    You can disable it in the browser (presumably all) by going to System Preferences > Java

     

    Deleting the JavaAppletPlugin (another approach above) may do something similar or may block more Java items from running

     

    A full uninstall is much more complicated (e.g. on my system, you're removing around 4k items). BUT, when I did a test (by adding .disabled on the end of several key java folders) --while I didn't find OS X complaining-- I immediately found programs that wouldn't function. The most surprising is Creative Suite. Starting Photoshop (I think) resulted in it saving java is required. My experiment in being Java free was very very brief.

     

    FWIW, the way I'm managing things is that I keep Java turned off in all the browsers (Chrome and Safari) I use regularly. Safari is my, dag nab it, I have to go site X that uses Flash|Java|Dumb plugin browser.

    AND then, I only use that browser when I need to go to one of those sites. There's still some security risk but my exposure is a lot lower. The why Safari isn't really relevent beyond saying I picked the browser I didn't need for other stuff.

     

    Finally (and I wish I could remember where I found this), there are some pretty hardcore security settings possible. Whereve I found it, I've got Java asking permission every time a Java applet tries to run in the browser. Slightly annoying but not likely a rogue applet is going to run without my knowledge.

     

    Hopefullly that adds more to the light everyone has shed on the subject.

  • by throttlemeister,

    throttlemeister throttlemeister Jun 14, 2013 4:44 AM in response to coyote4til7
    Level 1 (0 points)
    Jun 14, 2013 4:44 AM in response to coyote4til7

    Both Macology and coyote4til7 are correct.

     

    Macology is talking about the Oracle JRE7 installation, which can be removed exactly as he describes.

     

    coyote4til7 is talking about the Apple supplied java6 installation, which is optional, but once it is installed, cannot be removed.

     

    They are both different beasts.

     

    Your browser will use JRE7, if it is installed as Apple has disabled the web plugin for java6.

     

    Do not attempt to remove java6 as just about every software that uses java on OS X requires java6 to be installed and removing it will break those programs. Different java versions are not necessarely backwards compatible. If you java6 installed, you also have programs that depend on it installed as well.

  • by lgrillo,

    lgrillo lgrillo May 11, 2014 4:53 AM in response to loladoc
    Level 1 (0 points)
    May 11, 2014 4:53 AM in response to loladoc
  • by don montalvo,

    don montalvo don montalvo Mar 29, 2015 10:18 PM in response to lgrillo
    Level 2 (357 points)
    Mar 29, 2015 10:18 PM in response to lgrillo

    @Igrillo, thanks for the link. Beginning with Java 7 it really is a simple matter of removing the Internet Plug-In. Not sure about older versions. I hate that some applications still install Java. Like Fiery Workstation, which installs Java 8 v25 (v40 is current). But then they also create a /StartupItem so I'm writing them off as having hired less than capable devs/engineers.

  • by sers,

    sers sers Nov 6, 2015 3:21 AM in response to throttlemeister
    Level 1 (0 points)
    Nov 6, 2015 3:21 AM in response to throttlemeister

    I keep getting the message "To use the "java" command-line tool you need to install a JDK.  Now, to the best of my knowledge, Java isn't on my MacBook Pro (from May 2015).  I ported from another computer that had had Java removed although just how I no longer remember.  How do I get rid of this annoying message on my computer, and do I need to do something else to avoid trouble down the road?

  • by karloscastaneda,Apple recommended

    karloscastaneda karloscastaneda Jun 23, 2016 5:02 AM in response to loladoc
    Level 1 (19 points)
    Jun 23, 2016 5:02 AM in response to loladoc

    How to uninstall Java using the Terminal:

     

    https://www.java.com/en/download/help/mac_uninstall_java.xml

  • by joeschmo1969,

    joeschmo1969 joeschmo1969 Jul 12, 2016 3:01 PM in response to loladoc
    Level 1 (8 points)
    Mac OS X
    Jul 12, 2016 3:01 PM in response to loladoc

    When I follow the directions that mimic the Oracle instructions, if I open a new terminal, I get

     

    java -version

    java version "1.8.0_51"

    Java(TM) SE Runtime Environment (build 1.8.0_51-b16)

    Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)


    Doesn't look removed to me. How is the runtime env removed?