Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been trying to compile and execute both Python 2.7 and Java programs on my Windows 7 computer. Both of these have been installed, and I am attempting to run my programs off of the command line. Also, they are both included in both the System Path variable, and the User PATH variable. However, when I try to run my programs, I get the error "'python' (or 'java') is not recognized as an internal or external command, operable program or batch file."

Is there something wrong with my path variable? Is it just broken? Nothing seems to work.

share|improve this question

migrated from Feb 21 '13 at 7:30

This question came from our site for professional and enthusiast programmers.

Have you restarted your shell (command prompt) since you updated your PATH? – Hunter McMillen Feb 21 '13 at 2:12
@NaveedS: I don't know how many times I'm going to have to leave you comments about this, and perhaps one day you'll reply to one of them. But code blocks are for code, not every proper noun that you find. – Lightness Races in Orbit Feb 21 '13 at 2:59
@LightnessRacesinOrbit I used it to emphasize the System Path variable and User PATH variable – Naveed S Feb 21 '13 at 3:33
@Hunter Yes, I have restarted the shell. Still not working. – Sam Feb 21 '13 at 4:13
Your script may be on the path, but python.exe isn't. That is what the error message is telling you if you read it carefully. This isn't really a programming question. – Raymond Chen Feb 21 '13 at 4:52

You must log in to answer this question.

Browse other questions tagged .