Fix OpenJDK not uninstalling on Mac

Subscribers:
2,890
Published on ● Video Link: https://www.youtube.com/watch?v=0wVxM_2Bgk4



Duration: 1:20
0 views
0


Here's how to Fix OpenJDK not uninstalling on Mac. For starters, use CleanMyMac X@ https://macpaw.audw.net/c/376211/63812/1733 so u can efficiently manage installed app & your Mac.

Below are the OpenJDK for Mac uninstall script codes (beta):

#!/bin/bash

# Uninstall OpenJDK on Mac

# Remove the OpenJDK binaries
echo "Uninstalling OpenJDK..."
sudo rm -rf /Library/Java/JavaVirtualMachines/openjdk-*.jdk

# Remove the OpenJDK configuration files
echo "Removing OpenJDK configuration files..."
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane

echo "OpenJDK has been successfully uninstalled."
exit 0