Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.
The "RunningCassandraInEclipse" page has been changed by JoaquinCasares. http://wiki.apache.org/cassandra/RunningCassandraInEclipse?action=diff&rev1=18&rev2=19 -------------------------------------------------- Right click on the build.xml (in your project root) -> "Run As" -> "Ant Build". This will do a whole lot of good things, eg. generate the CLI grammar with ANTLR, generate avro and thrift code. + '''UPDATE''' New for Cassandra 0.7.1: Right click on the build.xml (in your project root) -> "Run As" -> "Ant Build..." and select "generate-eclipse-files". This will automatically build most of the jars in the right places. All that is left to do is to is the very next step in which you add all of the jars in the lib/ folder to the Build Path and all the dissociations should dissappear. If so, skip to the "Run Cassandra" section. + Next thing you want to do is to add all the needed third party libraries to the build path. Expand the lib/ folder and find a bunch of jar files. Shift select all of them and right mouse click and choose "Build Path" -> "Add to Build Path". This will force Eclipse do update the entire workspace, so please be patient. Some of the errors should also have disappeared by now (not all though). @@ -64, +66 @@ Now, if you are lucky, your Eclipse workspace should look something like this: {{attachment:FixSrcJavaSourceFolder-11.png}} - + + = Common Errors = + - (Some Eclipse users have complained about the following error message: + Some Eclipse users have complained about the following error message: '''''Access restriction: The method getDuration() from the type GcInfo is not accessible due to restriction on required library /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.jar'''''. @@ -80, +84 @@ Now the errors should be gone and you are ready to create a run/debug configuration for cassandra. + + = Run Cassandra = Click "Run" -> "Run Configurations...". Select org.apache.cassandra.thrift.CassandraDaemon as you Main class, make sure that your cassandra project is selected in the "Project" field. Under the Arguments tab you can specify VM arguments. Below is my complete VM arguments list for Cassandra 0.6:
