I want to compile my programs I made in VS Code but I cannot because allegedly
'javac' is not recognized as an internal or external command, operable program or batch file.
Doing some searching around, I feel like as though it should be working:
- With all the necessary extensions, I have set the java.home in the user settings in VS Code to override environment variables:
"java.home":"C:\\Program Files\\Java\\jdk1.8.0_181\\bin"
That one didn't work, but I also tried it without "\\bin" too and there was no luck to that, either.
- I tried setting the JAVA_HOME and JDK_HOME to the same path listed above and attempted including the \bin and not. Both did not work
- the JDK/Javac does not appear when I execute "where java" or "java -version" within the command prompt (I run on Windows 8.1)
I used the command prompt to navigate to the javac file, and alas that is the only known method that works. (However, javac does not work if I change my directory elsewhere.) What do I do? Why is this happening?