fix setjdk error when no jdk installed