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

dugbug

macrumors 68000
Original poster
Aug 23, 2008
1,929
2,147
Somewhere in Florida
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)
 

dugbug

macrumors 68000
Original poster
Aug 23, 2008
1,929
2,147
Somewhere in Florida
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.
 

Floris

macrumors 68020
Sep 7, 2007
2,382
1,478
Netherlands
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..
 

KALLT

macrumors 603
Sep 23, 2008
5,380
3,415
I deleted the java files (by using timestamp of when added) from /usr/bin.

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.
 

dugbug

macrumors 68000
Original poster
Aug 23, 2008
1,929
2,147
Somewhere in Florida
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.


No I deleted the files in /usr/bin.

Its ok, when I installed the GM it whacked java good :)
 

doynton

macrumors 6502
Oct 19, 2014
299
17
...
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
....
Done. I probably destroyed my install but I cannot see java anywhere.
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)
 

dugbug

macrumors 68000
Original poster
Aug 23, 2008
1,929
2,147
Somewhere in Florida
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..

Yeah the Mac native installer is busted. It worked last week. Minecraft.net posts indicate lots of users having issues
 

dugbug

macrumors 68000
Original poster
Aug 23, 2008
1,929
2,147
Somewhere in Florida
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..

the native mac installer now works... disable antivirus web shield first though.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.