启动zookeeper报错:JAVA_HOME is not set

启动zookeeper时报错JAVA_HOME is not set

看了环境变量,确实配置好了,但是zookeeper竟然没找到

修改bin目录下的zkEnv.cmd关于jdk的一部分

set JAVA_HOME="D:\Program Files\Java\jdk1.7.0_75"

if not defined JAVA_HOME (
echo Error: JAVA_HOME is not set.
goto :eof
) if not exist %JAVA_HOME%\bin\java.exe (
echo Error: JAVA_HOME is incorrectly set.
goto :eof
) set JAVA=%JAVA_HOME%\bin\java
上一篇:centos启动错误:Inodes that were part of a corrupted orphan linked list found.


下一篇:BSBuDeJie_05