Hi,

I am relatively new to Cassandra and getting this following error when I
run Cassandra.

root@instance-00000001:/opt/cassandra/bin# cassandra
root@instance-00000001:/opt/cassandra/bin# Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/cassandra/service/CassandraDaemon
Caused by: java.lang.ClassNotFoundException:
org.apache.cassandra.service.CassandraDaemon
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class:
org.apache.cassandra.service.CassandraDaemon.  Program will exit.

I tried cassandra, cassandra -f, cassandra -f start, which all prompted me
the same issue.

I believe this could be because of incorrect Classpath, I would like to
know how to set the Classpath correctly.

Thank you,
-- 
*Vishanth Balasubramaniam*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94771737718*
about me: *http://about.me/vishanth <http://about.me/vishanth>*

Reply via email to