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.
C:\Documents and Settings\js>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_11

C:\Documents and Settings\js>cd  %JAVA_HOME%\bin

C:\Program Files\Java\jdk1.6.0_11\bin>%JAVA_HOME%\bin java
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

How to solve this white space problem?


share|improve this question

migrated from stackoverflow.com Sep 27 '09 at 22:17

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

This windows command prompt is not DOS, you are not running this in a DOS environment. –  whatsisname Sep 22 '09 at 23:18

2 Answers 2

Use quotation marks:

cd "%JAVA_HOME%\bin"
share|improve this answer

If the "Java" is an application you must do this to run.



share|improve this answer

Your Answer


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