Fixed bug on JDK setup