How to remove Java on Mac OS X
Java which is a free open source support for software as well as web browser applications. However, in recent times Java is having a big security problem, there are many vulnerabilities in this tool. Hackers can steal important information. So to ensure information security and security, you should remove Java from the web browser on your computer. If you're new to Mac OS X or don't know how to uninstall Java on Mac OS X , refer to the article below.
Remove Java Runtime
Open the Terminal window then enter the following 2 commands, after each command press Enter to make Mac OS X perform. Note you will have to enter the password to confirm authorization.
sudo rm -fr / Library / Internet Plug-Ins / JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane
Once you are done, you can check your Java Mac OS X removal by opening the System Preferences window. On the System Preferences window you will see the Java icon has disappeared.
See also: How to turn off Java to improve security
Remove Java JDK
Removing the Java development kit (JDK) is more difficult than removing Java Runtime , you must use other commands and transfer the Java developers and libraries to the correct directory.
First open a Terminal window and enter the command line below to move the developers and Java libraries to the correct directory.
cd / Library / Java / JavaVirtualMachines
To see the list, you use the "ls" command.
sudo rm -rf jdk1
Next, press the TAB key to finish, the result will be displayed like the image below.
So you've removed the Java JDK on your Mac OS X.
Check again to make sure Java has been removed
To verify that the Java uninstallation on Mac OS X is correct, open the Terminal window and enter the command: Java , you will see a message that there is no Java in the operating system and requires installation.
Good luck!
You should read it
- How to Fix Java
- What is Java? Why choose Java?
- Basic Java syntax
- What is JAVA file? How to open, edit and convert JAVA files
- eQuiz - Multiple choice quiz about JAVA
- Download and install Java on the computer
- Basic Java exercises, with sample decoding
- Which career Java programming options are waiting for you?
- How to install Java on a Raspberry Pi
- How to fix the error does not install Java
- How to Tune a Java Virtual Machine (JVM)
- In the end, big universities realized that Java was a lousy language if used for introductory programming