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

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

You must log in to answer this question.