add error handling for JDK download