add setjdk function to switch java SDK version