You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by cn...@apache.org on 2015/10/03 23:07:25 UTC

svn commit: r1706631 - in /zookeeper/trunk: CHANGES.txt bin/zkEnv.cmd

Author: cnauroth
Date: Sat Oct  3 21:07:25 2015
New Revision: 1706631

URL: http://svn.apache.org/viewvc?rev=1706631&view=rev
Log:
ZOOKEEPER-2281: ZK Server startup fails if there are spaces in the JAVA_HOME path (Neha Bathra via cnauroth)

Modified:
    zookeeper/trunk/CHANGES.txt
    zookeeper/trunk/bin/zkEnv.cmd

Modified: zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/trunk/CHANGES.txt?rev=1706631&r1=1706630&r2=1706631&view=diff
==============================================================================
--- zookeeper/trunk/CHANGES.txt (original)
+++ zookeeper/trunk/CHANGES.txt Sat Oct  3 21:07:25 2015
@@ -184,6 +184,9 @@ BUGFIXES:
   ZOOKEEPER-2268: Zookeeper doc creation fails on windows
   (Arshad Mohammad via cnauroth)
 
+  ZOOKEEPER-2281: ZK Server startup fails if there are spaces in the JAVA_HOME
+  path (Neha Bathra via cnauroth)
+
 IMPROVEMENTS:
   ZOOKEEPER-1660 Documentation for Dynamic Reconfiguration (Reed Wanderman-Milne via shralex)  
 

Modified: zookeeper/trunk/bin/zkEnv.cmd
URL: http://svn.apache.org/viewvc/zookeeper/trunk/bin/zkEnv.cmd?rev=1706631&r1=1706630&r2=1706631&view=diff
==============================================================================
--- zookeeper/trunk/bin/zkEnv.cmd (original)
+++ zookeeper/trunk/bin/zkEnv.cmd Sat Oct  3 21:07:25 2015
@@ -39,10 +39,12 @@ if not defined JAVA_HOME (
   goto :eof
 )
 
-if not exist %JAVA_HOME%\bin\java.exe (
+set JAVA_HOME=%JAVA_HOME:"=%
+
+if not exist "%JAVA_HOME%"\bin\java.exe (
   echo Error: JAVA_HOME is incorrectly set.
   goto :eof
 )
 
-set JAVA=%JAVA_HOME%\bin\java
+set JAVA="%JAVA_HOME%"\bin\java