1

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>

10
  • 1
    Did you restart your console after updating path variables? Commented Jan 3, 2014 at 4:59
  • Did you edit your system variables before or after you opened that command window? Commented Jan 3, 2014 at 4:59
  • Yes, but I removed it and it still doesn't work. Commented Jan 3, 2014 at 5:04
  • Can you please try echo %PATH% in that same command window, just to see what you get? Commented Jan 3, 2014 at 5:05
  • 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? Commented Jan 3, 2014 at 5:08

2 Answers 2

1

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
Sign up to request clarification or add additional context in comments.

Comments

0

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).

3 Comments

I use an IDE but I'm using this for another one of my programs. Thank you for your answer but I tried it already. I by mistake left in the percent.
You might have to edit the system variable 'Path' instead of creating a new user variable, or alternatively run the console from the jdk/bin directory.
No, I have it in the system Path variable too. You just can't see it in that picture. It's in the other picture.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.