Java has become most popular and effective programming language for technical users and various security holes are there to maintain privacy. Indeed, there is no reason to install anymore, because Minercraft has its own bundled Java for both Windows and OS X. You can remove it today. Sometimes, you find some applications are not working which are based on Java just because of you doesn’t install Java on your system. It is not necessary; uninstalling Java breaks your PC permanently. Here are some steps to uninstall Java on your Mac OS X.
Don’t Miss: 11 Best Websites for Java Developers
Remove the Java Runtime
It is much easy to do. Just open a Terminal window and enter the following two lines.
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane
After doing this, you have to close and reopen the System Preferences window to view that the icon is gone.
Remove the Java JDK (which may not be installed)
The Java development kit is different from Java runtime. To remove java development kit, you need to run a different command and see in a different folder if it is installed. Now, open a Terminal window and paste the below mentioned command for switching to the right folder.
After that, use ‘Is’ at the prompt to see if anything is there. If you find anything, then type the following command.
sudo rm -rf jdk1
Now you have to use the TAB key to create the shell and complete the file name. It would look like the following screenshot, but the number may be different or may be same.
Make Sure Java is Gone
It is very simple to make sure that Java is no more on your system. You already have noticed that closing and reopening the System Preferences is sufficient to make the icon go away, but to be really sure, you can open a Terminal and write ‘Java’. You will see the message as ‘No Java runtime present, requesting install’.
Now a small dialog box will appear with the OK button, which indicates that everything is going to be OK.
Harry Williams is an experienced technical content writer and likes to write impressive and descriptive articles about Mac OS X and Windows 10.