add trailing / for JAVA_DIR