You need to add the zookeeper jar to the run/debug profile for the class you're executing.
On Thu, Oct 18, 2012 at 10:01 PM, David Medinets <[email protected]>wrote: > I imported the Accumulo project into the Spring Tool Suite (which is > Eclipse-based) as a maven project. Even seemed fine but I ran into an > issue when I tried to run the RowOperations example inside Eclipse. > Should this work? Below is the exception: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/zookeeper/KeeperException > at > org.apache.accumulo.core.client.ZooKeeperInstance.<init>(ZooKeeperInstance.java:99) > at > org.apache.accumulo.core.client.ZooKeeperInstance.<init>(ZooKeeperInstance.java:81) > at > org.apache.accumulo.examples.simple.client.RowOperations.main(RowOperations.java:59) > Caused by: java.lang.ClassNotFoundException: > org.apache.zookeeper.KeeperException > at java.net.URLClassLoader$1.run(URLClassLoader.java:217) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:205) > at java.lang.ClassLoader.loadClass(ClassLoader.java:321) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) > at java.lang.ClassLoader.loadClass(ClassLoader.java:266) > ... 3 more >
