updated to use java itself to get JAVA_HOME