add install jdk method