fixing jdk switching functions