Add helper function to set the JDK version to use locally