update java and fix vpc hostname