Please follow the below steps to enable Java in MAC.
From Desktop Click on the Apple Icon, then open System preferences.
From the System preferences, click on Java
From the General Tab you can see the Java in browser is disabled.
From the Security Tab, Enable Java content in the browser and click OK.
In the pop up, Enter your machine user name and password and hit OK.
You will get a confirmation, that is Java is Enabled in the browser. You may need to restart the browser.