add command line to switch java version