1

I recently found a java post showing its possible to select which JDK major install is used to run a java program at the command line using java -version:1.#. This will let me choose between major versions of java, but not if there are multiple minor versions available.

Does anyone know if its possible to choose between multiple minor updates of java like java 1.7.67 and java 1.7.80?

user1207381
  • 581
  • 2
  • 8
  • 19
  • What are you hoping to achieve with this? Is there a reason you wouldn't use the latest minor version? – Kayaman Dec 05 '16 at 20:19
  • We are testing our application on a specific java version. We want to go to a newer java version but we don't know which minor update we are going to. I want the option to choose between a few different minor updates so I'm ready when our leadership team finally settles on a version. – user1207381 Dec 05 '16 at 20:37
  • That's not necessary. Choosing between minor versions would be useful only if you were to test JDK bugs. Use the latest update, and save your time for something more useful. – Kayaman Dec 05 '16 at 20:39
  • If you install multiple versions, you choose which one to use by qualifying the `java` command. See [my previous answer here](http://stackoverflow.com/a/32963951/5221149). – Andreas Dec 05 '16 at 20:49

0 Answers0