fixing JAVA_HOME not set problem