Sublime Forum

Can't compile using javac

#1

I have written a simple hello world program and I get an error when I try to build it from the tools menu. Here is the output:

[Error 2] The system cannot find the file specified [cmd: [u'javac', u'C:\\Users\\Joe\\Desktop\\test.java']] [dir: C:\Users\Joe\Desktop] [path:C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;"C:\Programs\Java\jre6\bin\";"C:\Programs\Java\jdk1.6.0_16\bin";C:\NoInstallApps\MKVExtract\MKVExtractGUI-1.6.4.1\MKVtoolnix;C:\Programs\android-sdk_r06-windows\android-sdk-windows\tools;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Calibre2\;C:\Program Files (x86)\QuickTime\QTSystem\] [Finished]

Does anyone know how I can fix this?

0 Likes

#2

Quotes in PATH around the Java sdk caused the problem. It’s odd that it never caused any problems in any other program.

0 Likes