Jdk switching function