How to disable JAVA (JRE) on your Macintosh
Disabling JAVA on your Mac. “How to”
In your Dock open Launchpad
on the first page go to Utilities
In the Utilities find Java Preferences and launch it
Disable all available JRE by removing check marks and closing preferences.
Instructions how to completely remove JVM from your system you can find here