Tutorial 20160204_1521
Apple logo -> System Preferences -> Java
Java tab (of General, Update, Java, Security, Advanced tabs)
From the "Path" field copy and paste the java executable. (Mine is /Library/Internet\ Plugins/JavaAppletPlugin.plugin/Contents/Home/bin/java)
Use this path where you had "java" before