Add function to switch Java SDK versions