update java detection