1
votes

I tried everything, but I still can't get my Path working: javac.exe is not a recognized command

This is my PATH: Environment Variables

This is my environment variables: Not Working

My java bin folder contains java.exe

@David Wallace

Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Andy\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup>echo %PATH% 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\Window sPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files\Intel\Intel(R) Manage ment Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Com ponents\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\D AL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Pro gram Files (x86)\Windows Live\Shared

C:\Users\Andy\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup>

2
Did you restart your console after updating path variables? - Pshemo
Did you edit your system variables before or after you opened that command window? - Dawood ibn Kareem
Yes, but I removed it and it still doesn't work. - nulldev
Can you please try echo %PATH% in that same command window, just to see what you get? - Dawood ibn Kareem
Also, my Java is installed in C:\Program Files\Java\jdk1.7.0\ - that is, there's no _45. Can you please double check that yours isn't the same? - Dawood ibn Kareem

2 Answers

1
votes

I solved it. Instead of using a GUI to set the path, I used:

Path = %PATH%;C:\Program Files\Java\jdk1.7.0_45\bin
0
votes

You likely have to use a space, and not a percent sign, in the path to the jdk (no quotes required).

But I actually recommend to use an IDE (e.g. Eclipse) which will do the compiling for you (and help you code much faster).