add jdk check.