Fix add file location, java version and tar command