minor change fix command to check java version.