Here's how you can remove the non-developer version of Java 7 in OS X on your Mac. 1. Open a terminal window. 2. Type in the following commands then hit Enter. sudo rm -rf "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" sudo rm -rf "/Library/PreferencePanes/JavaControlPanel.prefpane"
For more, see the original article at the link below.
How to disable Java on your Mac | Macworld