Run java from command line windows 10

broken image
broken image

Even though you add a JAVA_HOME variable, you still find Java 9/10 being used in command line. For some reason, if you want to experiment with the newer releases of Java and for the same reason, if you install Java 9 or 10, you just cannot run Scala (or other libraries that run Java 8) that’s because Java 9/10 changes your path. Not all libraries have upgraded them self to the latest Java releases, for example at the time of writing this Scala 2.12.5 doesn’t fully support Java 9, so I still had to use Java 8. Oracle has decided that from Java 9 there will be a new java version every six months and the third release would be an LTS release (?).