📎 AI Summary:
The thread discusses issues with updating the system's PATH environment variable to run Java commands and other executables on Windows, with initial users experiencing command recognition errors despite adding the correct paths. One contributor suggests including a trailing backslash to the PATH entry, which resolves the problem. Later, a user with a different setup reports that some executables are not found in plain Command Prompt but work in PowerShell, indicating possible differences in environment handling between shell types and system architectures. The overall sentiment is instructive, highlighting the importance of correct PATH formatting and shell considerations.

Socar

New Member
Joined
Sep 20, 2009
Messages
4
Thread Author #1
I can add to the System Variable “Pathâ€Â￾, however it does not seem to have any effect on the command line. I have added “C:\Program Files (x86)\Java\jdk1.6.0_05\binâ€Â￾ to the system variables however running I still get the following error:
‘java’ is not recognized as an internal or external command, operable program or batch file.
 

Last edited:
Solution
I can add to the System Variable “Pathâ€Â￾, however it does not seem to have any effect on the command line. I have added “C:\Program Files (x86)\Java\jdk1.6.0_05\binâ€Â￾ to the system variables however running I still get the following error:
‘java’ is not recognized as an internal or external command, operable program or batch file.

You need it to be 'C:\Program Files (x86)\Java\jdk1.6.0_05\bin\', with the extra trailing backslash.

Hope that helped :)

gavin19

New Member
Joined
Aug 8, 2009
Messages
440
I can add to the System Variable “Pathâ€Â￾, however it does not seem to have any effect on the command line. I have added “C:\Program Files (x86)\Java\jdk1.6.0_05\binâ€Â￾ to the system variables however running I still get the following error:
‘java’ is not recognized as an internal or external command, operable program or batch file.

You need it to be 'C:\Program Files (x86)\Java\jdk1.6.0_05\bin\', with the extra trailing backslash.

Hope that helped :)
 

Solution

andrewraus

New Member
Joined
Jun 24, 2010
Messages
2
Hi,

I've set c:\itools\ in my path environment variable. One exe file in that dir is found OK & executes, another exe file is not found "fatal: Can not find file"

This is on a 64 bit win 7 machine. If I use PowerShell instead of the dos prompt, both exe files are found OK. On another Win 7 (32 bit) machine both files are also found OK.

Any thoughts?

Thanks Andrew