David Bosschaert wrote:
FWIW, I've uploaded some Windows versions of the zookeeper scripts to
https://issues.apache.org/jira/browse/ZOOKEEPER-426 a while ago. They
run from the ordinary windows shell, so no need for Cygwin or anything
like that. I'm using Zookeeper from Windows all the time and they work
fine for me.
I did notice that the scripts didn't get included in the latest 3.2.0
release. It might be worth putting some Windows scripts in the next
release as nothing in Zookeeper is unix specific (except for the
scripts ;)
Looks like it slipped through as it wasn't assigned to a particular
release. I've updated the jira to list this for upcoming 3.3.
Thanks,
Patrick
Best regards,
David
2009/8/19 zhang jianfeng <zjf...@gmail.com>:
Yes,I am using cygwin and JDK 1.6,
the command to start HBase is the same as in the get started:
bin/zkServer.sh start
The following is the whole message:
zjf...@zjf ~/zookeeper-3.1.1
$ *bin/zkServer.sh start*
JMX enabled by default
Starting zookeeper ... STARTED
zjf...@zjf ~/zookeeper-3.1.1
$ java.lang.NoClassDefFoundError:
Files\Java\jre6\lib\ext\QTJava/zip;D:\Java\lib\hadoop-0/18/0\build\tools:/home/zjffdu/zookeeper-3/1/1/bin////zookeeper-3/1/1/jar:/home/zjffdu/zookeeper-3/1/1/bin////lib/junit-4/4/jar:/home/zjffdu/zookeeper-3/1/1/bin////lib/log4j-1/2/15/jar:/home/zjffdu/zookeeper-3/1/1/bin////src/java/lib/junit-4/4/jar:/home/zjffdu/zookeeper-3/1/1/bin////src/java/lib/log4j-1/2/15/jar
Caused by: java.lang.ClassNotFoundException:
Files\Java\jre6\lib\ext\QTJava.zip;D:\Java\lib\hadoop-0.18.0\build\tools:.home.zjffdu.zookeeper-3.1.1.bin....zookeeper-3.1.1.jar:.home.zjffdu.zookeeper-3.1.1.bin....lib.junit-4.4.jar:.home.zjffdu.zookeeper-3.1.1.bin....lib.log4j-1.2.15.jar:.home.zjffdu.zookeeper-3.1.1.bin....src.java.lib.junit-4.4.jar:.home.zjffdu.zookeeper-3.1.1.bin....src.java.lib.log4j-1.2.15.jar
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class:
Files\Java\jre6\lib\ext\QTJava.zip;D:\Java\lib\hadoop-0.18.0\build\tools:/home/zjffdu/zookeeper-3.1.1/bin/../zookeeper-3.1.1.jar:/home/zjffdu/zookeeper-3.1.1/bin/../lib/junit-4.4.jar:/home/zjffdu/zookeeper-3.1.1/bin/../lib/log4j-1.2.15.jar:/home/zjffdu/zookeeper-3.1.1/bin/../src/java/lib/junit-4.4.jar:/home/zjffdu/zookeeper-3.1.1/bin/../src/java/lib/log4j-1.2.15.jar.
Program will exit.
$
Thank you
Jeff zhang
On Tue, Aug 18, 2009 at 12:53 PM, Patrick Hunt <ph...@apache.org> wrote:
you are using java 1.6 right? more detail on the class not found would be
useful (is that missing or just not included in your email?) Also the
command line you're using to start the app would be interesting.
Patrick
Mahadev Konar wrote:
Hi Zhang,
Are you using cygwin?
mahadev
On 8/17/09 11:23 PM, "zhang jianfeng" <zjf...@gmail.com> wrote:
Hi all,
I tried to run zookeeper in windows, but the following errors appears:
/*****************************************************************************
******************************************************************************>
*
$ java.lang.NoClassDefFoundError:
Files\Java\jre6\lib\ext\QTJava/zip;D:\Java\lib\hadoop-0/18/0\build\tools:/home
/zjffdu/zookeeper-3/1/1/bin////zookeeper-3/1/1/jar:/home/zjffdu/zookeeper-3/1/
1/bin////lib/junit-4/4/jar:/home/zjffdu/zookeeper-3/1/1/bin////lib/log4j-1/2/1
5/jar:/home/zjffdu/zookeeper-3/1/1/bin////src/java/lib/junit-4/4/jar:/home/zjf
fdu/zookeeper-3/1/1/bin////src/java/lib/log4j-1/2/15/jar
Caused by: java.lang.ClassNotFoundException:
Files\Java\jre6\lib\ext\QTJava.zip;D:\Java\lib\hadoop-0.18.0\build\tools:.home
.zjffdu.zookeeper-3.1.1.bin....zookeeper-3.1.1.jar:.home.zjffdu.zookeeper-3.1.
1.bin....lib.junit-4.4.jar:.home.zjffdu.zookeeper-3.1.1.bin....lib.log4j-1.2.1
5.jar:.home.zjffdu.zookeeper-3.1.1.bin....src.java.lib.junit-4.4.jar:.home.zjf
fdu.zookeeper-3.1.1.bin....src.java.lib.log4j-1.2.15.jar
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class:
Files\Java\jre6\lib\ext\QTJava.zip;D:\Java\lib\hadoop-0.18.0\build\tools:/home
/zjffdu/zookeeper-3.1.1/bin/../zookeeper-3.1.1.jar:/home/zjffdu/zookeeper-3.1.
1/bin/../lib/junit-4.4.jar:/home/zjffdu/zookeeper-3.1.1/bin/../lib/log4j-1.2.1
5.jar:/home/zjffdu/zookeeper-3.1.1/bin/../src/java/lib/junit-4.4.jar:/home/zjf
fdu/zookeeper-3.1.1/bin/../src/java/lib/log4j-1.2.15.jar.
Program will exit.
/*****************************************************************************
******************************************************************************>
*
It looks like my JAVA_HOME is not set correctly, anyone have any ideas?
Thank you
Jeff zhang