add function to set jdk version