Home Download Buy Blog Forum Support

Compiler Problem

Compiler Problem

Postby helloworld65 on Tue Sep 29, 2009 1:19 pm

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?
helloworld65
 
Posts: 2
Joined: Tue Sep 29, 2009 1:17 pm

Re: Compiler Problem

Postby vim on Tue Sep 29, 2009 1:25 pm

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?
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: Compiler Problem

Postby helloworld65 on Tue Sep 29, 2009 4:13 pm

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.
helloworld65
 
Posts: 2
Joined: Tue Sep 29, 2009 1:17 pm

Re: Compiler Problem

Postby jps on Tue Sep 29, 2009 10:21 pm

Have you restarted Sublime Text after changing the PATH?
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 17 guests