Better detect java in the script
Fail the installation if no JAVA_HOME