Sublime Forum

Compiler Problem

#1

For some reason when I attempt to compile my java code i get this error.

‘javac.exe’ is not recognized as an internal or external command, operable program or batch file.

Is there a step I have to do to link sublime-text to javac.exe and java.exe?

I tried placing javac into the same folder as sublime and it partly worked but it required the entire java library to be placed the same way and i think that is just too much work. How do I link the java compiler to sublime text?

0 Likes

#2

did you try setting up the PATH variable to include the path to those .exe files? i guess the test case should be, if you open a cmd prompt and just type: “javac.exe” does it fire up?

0 Likes

#3

I added the PATH for javac.exe in the environment variables and when I type javac.exe in the cmd it fires up. But sublime text still gives me the same error message.

0 Likes

#4

Have you restarted Sublime Text after changing the PATH?

0 Likes