cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Exception in thread "main" java.lang.NoClassDefFoundError
Date Thu, 24 Feb 2011 19:53:21 GMT
Hi everyone

I am new to JAVA and Cassandra.
I just get started to install Cassandra.
My Machine is Debian 5.0.6.
I installed jdk1.6.0_24 to /usr/local
java -version is as following.
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)
javac -J-version is as following.
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)

and then I installed apache-cassandra-0.6.12 to /user/local

I add the following PATH on /etc/profile
#for Java
export JAVA_HOME="/usr/local/java"
export CLASSPATH=".:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar;"
export PATH="$JAVA_HOME/bin:$PATH"

#for Java VM
export JVM_OPTS="-Xmx1G -Xms512M -Xss256K"

#for Cassandra
export CASSANDRA_HOME="/usr/local/cassandra/bin"
export CASSANDRA_CONF="/usr/local/cassandra/conf"
export CASSANDRA_INCLUDE="/usr/local/cassandra/bin/"
export PATH="$PATH:/usr/local/cassandra/bin"

I did source /etc/profile.

And then I started /usr/local/cassandra/bin/cassandra -f
However I met the following Error message.

Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException:
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
Could not find the main class: Program
will exit.

I don't know what's wrong?
I don't know what to do to solve this problem.
I searched this error message and then found it but mostly for Win not
My classpath is wrong? I can find only many html(inc.
CassandraDaemon.html) files
at /usr/local/cassandra/javadoc/org/apache/cassandra/thrift/.
Is this OK?
if my classpath is wrong , what is a correct path? (I can't find

Please advise me to solve this problem.
Thank you for your help in advance.

Best Regards
Mac Kondo

Mamoru Kondo
Vivid Navigation,Inc.

View raw message