See if you have Java installed on your Mac
Use terminal to see if you are running Java in OS X
Here's how you can see if you're running Java in OS X on your Mac.
1. Open a terminal window.
2. Type in the following command then hit Enter.
For more, see the original article at the link below.
How to disable Java on your Mac | Macworld