

You can also uninstall Java from the command line by using the rm command, this is aimed for advanced users who understand the ramifications of using rm with superuser privileges. Uninstalling Java and JRE from Mac OS Command Line The Finder based approach is the easier and safer way to uninstall Java from a Mac, though Mac users can also remove Java and JRE via the command line as well. Java will be removed completely this way. Again return to the “Go” menu and “Go To Folder” to the following path:.Locate and delete “JavaControlPanel.prefPane” from this folder, again you will need an admin login.Now go back to the ‘Go’ menu and “Go To Folder” and enter the following path:.Locate and delete “ugin” from this folder – note moving this item to the trash requires an admin login.From the Mac Finder, pull down the “Go” menu and choose “Go To Folder” and enter the following path:.Quit out of any active web browser or any other app which uses Java.Here is what you’ll want to do and look for via the Finder: You should always back up your Mac before removing any item found within a system directory. Removing Java from the Mac is a three step effort involving manually deleting various java related plug-ins and files found throughout macOS / Mac OS / Mac OS X, both in the system /Library folder and in the users ~/Library folder. An alternative option would be to simply disable Java instead, which turns it off but does not remove it from the computer. You would obviously not want to uninstall Java if an app or web app you use requires Java. Note that by removing Java you will lose the ability to run any and all Java apps or Java dependent apps and applets, either individually, standalone, or via the web. We’ll show you how to remove java using both methods.

Instead you’ll either turn to the command line, or dig around in the Finder and file system yourself to remove Java in Mac OS. Uninstalling Java and JRE from the Mac is a little more complicated than installing it, as there is no dedicated uninstaller app or tool, and it’s not as simple as uninstalling other Mac apps since the components are split into different locations.
