Dony.Xu created STORM-769: ----------------------------- Summary: Storm can not identify JAVA_HOME if the of java home contains a space Key: STORM-769 URL: https://issues.apache.org/jira/browse/STORM-769 Project: Apache Storm Issue Type: Bug Components: external Affects Versions: 0.9.4 Environment: java env: java version "1.7.0_75" Java(TM) SE Runtime Environment (build 1.7.0_75-b13) Java HotSpot(TM) Client VM (build 24.75-b04, mixed mode, sharing) windows: win7 X86 32bit
Storm version: apache-storm-0.9.4 Reporter: Dony.Xu I installed java 1.7.0_75 in windows 7 through .exe file and setted the JAVA_HOME path which is "D:\Program Files\Java\jdk1.7.0_75". Run the "java -version" command to make sure the jdk is ok. After I setted up all environment variable about storm, I run the command "storm version" the terminate shows "Error: JAVA_HOME is incorrectly set." So I delete following code in storm.cmd file " if not defined JAVA_HOME ( set JAVA_HOME=c:\apps\java\openjdk7 ) if not exist %JAVA_HOME%\bin\java.exe ( echo Error: JAVA_HOME is incorrectly set. goto :eof ) " and run "storm version" command again, it shows that 'D:\Program' is not recognized as an internal or external command,operable program or batch file. So I guess that the script can not deal with a JAVA_HOME path which contains a space. -- This message was sent by Atlassian JIRA (v6.3.4#6332)