How do you turn it on in the first place?
You may have to install Java first, as Apple no longer includes it in its latest versions of Mac OS X. See the thread
How to enable the Java Plugin? for some details. For Java 7 and higher, the first link in post #32791 in that thread links to an Oracle FAQ containing a further link explaining
how to enable Java in browsers running current Mac OS versions.