1Click Start.
2Select Settings.
3Select System.
4Select Apps & features.
5Select the program to uninstall and then click its Uninstall button.
6Respond to the prompts to complete the uninstall.
1sudo rm -rf /Library/Java/*
2sudo rm -rf /Library/PreferencePanes/Java*
3sudo rm -rf /Library/Internet\ Plug-Ins/Java*
4