Update JDK install, thanks to @trevd who I took this from.