I've set the path exactly as I have seen multiple people on tutorials, but maybe that's my problem. I executed echo %path% and got this:
C:\Users\Desktop>echo %path% "C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk\bin;C:\Program Files\Java\jre\bin";"C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Java\jdk\bin;C:\Program Files\Java\jre\bin";C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;"C:\Users\Desktop\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Java\jdk\bin\javac.exe";
Please can someone point out what I should do? I just want to compile java in the command prompt
C:\Program Files\Java\jdk\bin
, not the command itself (javac.exe
). – Holger