Ensure java version