cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: Exception in thread "main" java.lang.NoClassDefFoundError
Date Fri, 25 Feb 2011 15:28:47 GMT
http://wiki.apache.org/cassandra/RunningCassandra may be useful, but
really you should be using the debian package:
http://wiki.apache.org/cassandra/DebianPackaging

2011/2/24 kondo@vivinavi.com <kondo@vivinavi.com>:
> 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_MAIN="/usr/local/cassandra/javadoc/org/apache/cassandra/thrift/CassandraDaemon.html"
> export CASSANDRA_INCLUDE="/usr/local/cassandra/bin/cassandra.in.sh"
> export PATH="$PATH:/usr/local/cassandra/bin"
>
> I did source /etc/profile.
> And checked $JAVA_HOME,$CLASS_PATH,$CASSANDRA_HOME etc.
>
> And then I started /usr/local/cassandra/bin/cassandra -f
> However I met the following Error message.
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> /usr/local/cassandra/javadoc/org/apache/cassandra/thrift/CassandraDaemon
> Caused by: java.lang.ClassNotFoundException:
> .usr.local.cassandra.javadoc.org.apache.cassandra.thrift.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:
> .usr.local.cassandra.javadoc.org.apache.cassandra.thrift.CassandraDaemon. 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
> Linux.
> 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
> CassandraDaemon.java)
>
> Please advise me to solve this problem.
> Thank you for your help in advance.
>
> Best Regards
> Mac Kondo
>
> --
> *************************
> Mamoru Kondo
> Vivid Navigation,Inc.
> http://www.vivinavi.com
> kondo@vivinavi.com
> *************************
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Mime
View raw message