maybe need to set JAVA_HOME in env
BUILD_DIR variable is not available