Install Java 11 OpenJDK on Windows (a system path issue)

TomateFraiche :

Java 11 had recently arrived and, as everybody knows, this version has no installation file.

To install Java without installer I, of course, had set my system settings PATH and JAVA HOME to the address of the folder where my Java 11 was unzipped (advised by accepted reponses to similar questions).

The only thing is that all those advices about system settings make no effect whatsoever on my machine:

  • Checking with a command line outputs my old Java 9 version
  • With Java 9 removed from the folder, command line does not recognise any Java at all.

So, is there actually any way to install this version?

Thanks for future answers and for not marking my question as a duplicate (for the reason explained above)

TomateFraiche :

The problem resided in the format of the path line:

  1. My path included multiple entries, I was putting Java at the end of the line and the change was not working

  2. But when I placed it right at the start of the path line, Java 11 got accepted and started to function alright on my Windows.

For other users facing a similar issue: The root of the problem was that, as Klitos Kyriacou rightly pointed out, my path included other entries that had a word 'java' in their names. When placed before Java 11 in the classpath, those entries were invalidating my adding of the java version.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=68346&siteId=1