How do I uninstall java 6 from el capitan?

Discussion in 'OS X El Capitan (10.11)' started by dugbug, Sep 5, 2015.

  1. dugbug macrumors 65816

    dugbug

    Joined:
    Aug 23, 2008
    Location:
    Somewhere in Florida
    #1
    i used the apple installer to put java on for minecraft, then minecraft announced a java-free native mac minecraft so i want to remove the cruft. Interestingly it puts java in /usr/bin area. The sudo lines provided by oracle don't remove anything from /usr/bin. I take it this may be the no-admin lockdown?

    Will a subsequent public beta remove java?

    thanks

    (edit: minecraft not java free just self-contained with native mac launcher)
     
  2. Floris macrumors 68020

    Floris

    Joined:
    Sep 7, 2007
    Location:
    Netherlands
  3. dugbug thread starter macrumors 65816

    dugbug

    Joined:
    Aug 23, 2008
    Location:
    Somewhere in Florida
    #3
    well I did this and it seems to work.
    1. disable rootless:
    boot with command-R and in resulting recovery mode open terminal.
    In terminal type: csrutil disable
    reboot
    (don't worry this is reversible)

    2. Uninstall the java crap
    Open terminal and entering:
    sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane

    These do not remove the java crap in usr/bin though. I deleted the java files (by using timestamp of when added) from /usr/bin.

    3. Rebooted back into recovery mode and through terminal entered:
    csrutil enable

    Done. I probably destroyed my install but I cannot see java anywhere.
     
  4. Floris macrumors 68020

    Floris

    Joined:
    Sep 7, 2007
    Location:
    Netherlands
    #4
    After upgrading to beta 6 and GM candidate, java-6-se wasn't installed anymore, so I tried out the minecraft stage launcher and their latest one from their site. Neither works for me. I have to install java to make it work..
     
  5. KALLT macrumors 601

    Joined:
    Sep 23, 2008
    #5
    Did you remove actual binaries or just aliases to the JavaVM.framework in /System/Library/Frameworks? I wouldn’t delete anything from there. I don’t have Java installed, but I still have that alias in /usr/bin pointing towards the framework, which was created on 3 September. I haven’t installed anything lately, only the El Capitan GM. So I assume the system will create that framework and alias regardless.

    You can check with the terminal command java -version to see whether Java is installed.
     
  6. dugbug thread starter macrumors 65816

    dugbug

    Joined:
    Aug 23, 2008
    Location:
    Somewhere in Florida
    #6

    No I deleted the files in /usr/bin.

    Its ok, when I installed the GM it whacked java good :)
     
  7. doynton macrumors 6502

    Joined:
    Oct 19, 2014
    #7
    You may want to clear here also - Oracle puts jdk stuff here (if you installed that in addition to jre).

    cd /Library/Java/JavaVirtualMachines
    ls (to see what you have)
    sudo rm -rf jdk1.8.0_25.jdk (or whatever version)
     
  8. dugbug thread starter macrumors 65816

    dugbug

    Joined:
    Aug 23, 2008
    Location:
    Somewhere in Florida
    #8
    Yeah the Mac native installer is busted. It worked last week. Minecraft.net posts indicate lots of users having issues
     
  9. dugbug thread starter macrumors 65816

    dugbug

    Joined:
    Aug 23, 2008
    Location:
    Somewhere in Florida
    #9
    the native mac installer now works... disable antivirus web shield first though.
     
  10. Floris macrumors 68020

    Floris

    Joined:
    Sep 7, 2007
    Location:
    Netherlands
    #10
    What's an Anti Virus .. xD
     

Share This Page