How do I remove Java from my MAC given the facts below?

I need to remove Java from my Mac. I unsuccessfully tried to do so using Terminal and the following code:

sudo rm -rf "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin"

sudo rm -rf "/Library/PreferencePanes/JavaControlPanel.prefPane"

sudo rm -rf "~/Library/Application Support/Java"


My Internet Plug-ins file has no Java folders or files. My PreferencePanes folder has no Java folders. My system has none of the three named Java files.


Any help would be greatly appreciated.



Posted on Mar 29, 2021 11:56 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I remove Java from my MAC given the facts below?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.