add JAVA_HOME to link-grammar build