use JAVA_HOME in compiling