Added ability to select java version.