Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (6.1k points)
I was trying to uninstall Java8 jdk but I could not able to remove it. Please help me with this issue.

1 Answer

0 votes
by (11.7k points)

 In order to remove Java from Mac, you must have administrator privileges and execute the remove command either by root or by using the sudo tool.

In  order to remove one directory and one file (a symlink), follows these steps:

  1. Click on the Finder icon availabe in your dock

  2. Go on to the Utilities folder

  3. Double-click on the Terminal icon

  4. Now, In the Terminal window, Copy and Paste the commands  given below:
    sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
    sudo rm -fr ~/Library/Application\ Support/Java

Caution: Do not try to uninstall Java by removing the Java tools from /usr/bin. This directory is part of the system software and any changes will be reset by Apple the next time user performs an update of the OS.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...