hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahadev Konar <maha...@yahoo-inc.com>
Subject Re: Errors when run zookeeper in windows ?
Date Tue, 18 Aug 2009 17:21:40 GMT
Hi Zhang,
 Are you using cygwin?

mahadev


On 8/17/09 11:23 PM, "zhang jianfeng" <zjffdu@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


Mime
View raw message