Sublime Forum

hi,i have a qustion

#1

Hello everyone,
I am getting this error while trying to build my code. My path variables for python is correct. I can start the code on the command line, however I get this error when try to build it from Sublime Text 3.

[WinError 2] The system cannot find the file specified
[cmd: [‘javac’, ‘-encoding’, ‘UTF-8’, ‘-d’, ‘.’, ‘D:\Program Files\Sublime Text 3\JAVA\TestButton.java’]]
[dir: D:\Program Files\Sublime Text 3\JAVA]
[path: C:\Program Files (x86)\Python37-32\Scripts;C:\Program Files (x86)\Python37-32;D:\Program Files (x86)\Scripts;D:\Program Files (x86);C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel® Management Engine Components\DAL;C:\Program Files\Intel\Intel® Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel® Management Engine Components\IPT;C:\Program Files\Intel\Intel® Management Engine Components\IPT;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\dotnet;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Java\jdk1.8.0_162\bin;D:\Program Files\Tomcat 8.5\bin;C:\Program Files\mysql-8.0.12-winx64\bin;D:\mysql-5.7.23-winx64\bin;C:\Users\asus\AppData\Local\Programs\Python\Python36;D:\sdk;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Java\jdk1.8.0_162\bin;C:\Program Files\Java\jdk1.8.0_162\jre\bin;D:\Program Files\PYTHON\Scripts;D:\Program Files\PYTHON;D:\Program Files\Scripts;D:\Program Files;C:\Users\asus\AppData\Local\Microsoft\WindowsApps;D:\sdk;D:\Program Files\apache-maven-3.6.0\bin;C:\Program Files\Java\jdk1.8.0_162\jre\bin;C:\Program Files\Java\jdk1.8.0_162\bin;]
[Finished]

0 Likes

#2

Your question says that the path to python is correct, but the program it’s executing is javac, not python.

That said, at first blush it looks like the path to the jdk is correct; if you type where javac on the command line, what does it say?

0 Likes

#3

Did you perhaps inadvertently change the current build system (Tools>Build System> …) ?

1 Like