"Java Home" should point to the location of Java that you are using. On my system this points to C:\Program Files\Java\jdk-9
"Path" may include the directory where Java is installed. Then again it may not. On my system it includes something C:\Program Files\Java\jdk-9\bin\
C:\Program Files\Java\jdk-9\bin is the directory where you can find java.exe and javac.exe
You can have more then one version of Java on your system, without any problems.
I assume javac is the compiler? no?
ras oscar wrote:I assume javac is the compiler? no?
Yes, javac is the compiler.
And as I stated previously you can have many different versions of Java installed on your system. You can even have the same version installed in many different places.
I would recommend that if possible that you do limit the total number of Java installs on your system.
If something like NetBeans needs Java it will most likely find it already installed on your system or you can configure the program afterwards to point the version you already have installed.
In the world of Java, nearly everything is backwards compatible, so if you have Java 8 installed on your system then you can run programs that require Java 7 and Java 6 and most likely even older versions of Java.
But seeing as you are starting out I would only concern myself with Java 8 and possibly Java 9 (Java 9 came out Sep 2017).
Not necessarily on Windows®.
Pete Letkeman wrote:. . . If something like NetBeans needs Java it will most likely find it already installed on your system . . .
It complained when I tried to compile something to run on JDK1.4.2 a few months ago, but it still ran.
if you have Java 8 installed on your system then you can run . . .most likely even older versions of Java. . . .
I would only concern myself with Java 8 and possibly Java 9 (Java 9 came out Sep 2017).
BTW, your Java folder names look odd. Maybe you just copied the wrong when writing them?
Campbell Ritchie wrote:You have to add the location to the PATH first to use which, don't you? Is it the same with its Windows® counterpart where?
You do, but sometimes a person will have Java in their PATH and not know it, or the system can find java but not javac. In that case, which/where can help find where Java is already installed.