[ 
https://issues.apache.org/jira/browse/STORM-769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Emil Wabra updated STORM-769:
-----------------------------
    Comment: was deleted

(was: i confirm this bug on an windows 2012 server.

just install JDK to a directory without whitespaces ie. (c:\java\bla). After 
that it works as expected)

> 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.
> The storm.cmd script can not deal with a JAVA_HOME path which contains a 
> space like "D:\Program Files\Java\jdk1.7.0_75".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to