update JDK detection