while trying to create a web module project throwing an error
but my ENV variables and JAVA_HOME are already pointing to correct JDK folder.
while trying to create a web module project throwing an error
but my ENV variables and JAVA_HOME are already pointing to correct JDK folder.
Try setting your JAVA_HOME path to C:\Program Files\jdk1.8.0_141\bin. I believe you need to point it to the folder the executable (java.exe) is located in.
What I do is close to what you use, but not quite the same. I set JAVA_HOME
to C:\jdk1.8.0_141
(as I install the JDK at the root C:\ rather than in program files. I don't like spaces in path names and I don't like drilling down to get to the JDK. Personal preference and should not matter.) The difference is not using \bin on the end. Then for my PATH variable, I have %JAVA_HOME%\bin;C:\WINDOWS\SYSTEM32;...
. That is, tack the \bin in the PATH not the JAVA_HOME.