Fixed #1065 add $JAVA_HOME environment variable check