Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Feb 21 '13 at 7:30

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

2  
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
1  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.