Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6556D61F6 for ; Sat, 6 Aug 2011 15:48:21 +0000 (UTC) Received: (qmail 43600 invoked by uid 500); 6 Aug 2011 15:48:19 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 43508 invoked by uid 500); 6 Aug 2011 15:48:18 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 43500 invoked by uid 99); 6 Aug 2011 15:48:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2011 15:48:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2011 15:48:13 +0000 Received: by wwf5 with SMTP id 5so284984wwf.25 for ; Sat, 06 Aug 2011 08:47:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=xU9ph1Px/eb00s/+8r2MyFN2PHF5bCWJOwYCpsOMlwc=; b=d8fjY7iV4kl7HT7vlqb4ZMqZRkfkJpc/4MysZGLazziOcn7+PH6ebGJ8itD7fD237h l0gCHyH8bWPP9+5nDu6E/DJj1ERHzDb4zgOMj9T2ryYZk5VJ90XaGMg6r8tPan1eZNxl FAuyZiDfett7bIOKaaz93E4VXNbA4xgQ1EsTQ= Received: by 10.216.160.9 with SMTP id t9mr334835wek.108.1312645671064; Sat, 06 Aug 2011 08:47:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.58.148 with HTTP; Sat, 6 Aug 2011 08:47:31 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Sat, 6 Aug 2011 10:47:31 -0500 Message-ID: Subject: Re: How to release a customised Cassandra from Eclipse? To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable look at bin/cassandra, you can't just run it with "java -jar" On Sat, Aug 6, 2011 at 10:43 AM, Alvin UW wrote: > Hello, > > I set up a Cassandra project in Eclipse following > http://wiki.apache.org/cassandra/RunningCassandraInEclipse > Then, I made a few modifications on it to form a customised Cassandra. > But I don't know how can I release this new Cassandra from Eclipse as a j= ar > file to use in EC2. > > I tried "ant release" command in command line. It can successful build .j= ar > file. > Then I typed java -jar apache-cassandra-0.7.0-beta1-SNAPSHOT.jar > > "Error: Failed to load Main-Class manifest attribute from " > > I edited a MANIFEST.MF like: > Manifest-Version: 1.0 > Ant-Version: Apache Ant 1.7.1 > Created-By: 16.3-b01 (Sun Microsystems Inc.) > Implementation-Title: Cassandra > Implementation-Version: 0.7.0-beta1-SNAPSHOT > Implementation-Vendor: Apache > Main-Class: org.apache.cassandra.thrift.CassandraDaemon > > and tried again. the error is like below: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/thrift/transport/TTransportException > Caused by: java.lang.ClassNotFoundException: > org.apache.thrift.transport.TTransportException > =A0=A0=A0 at java.net.URLClassLoader$1.run(URLClassLoader.java:217) > =A0=A0=A0 at java.security.AccessController.doPrivileged(Native Method) > =A0=A0=A0 at java.net.URLClassLoader.findClass(URLClassLoader.java:205) > =A0=A0=A0 at java.lang.ClassLoader.loadClass(ClassLoader.java:319) > =A0=A0=A0 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294= ) > =A0=A0=A0 at java.lang.ClassLoader.loadClass(ClassLoader.java:264) > =A0=A0=A0 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332= ) > Could not find the main class: org.apache.cassandra.thrift.CassandraDaemo= n. > Program will exit. > > So what's the problem? > > > Thanks. > Alvin > > > > > > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com