fix for jdk and for a couple of issues in settings and check command