added java version and output directory