Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.
The "RunningCassandraInIDEA" page has been changed by RobertStupp: https://wiki.apache.org/cassandra/RunningCassandraInIDEA?action=diff&rev1=26&rev2=27 Comment: Note to link IDEA to .classpath {{attachment:2_Import as Eclipse project.png}} <<BR>><<BR>> - 7. Select '''Next''' + 7. Select '''Next''' - make sure that '''Link created IntelliJ IDEA modules to Eclipse project files''' is checked - {{attachment:3_Select Project Directory.png}} + {{attachment:3b-import-project.png}} <<BR>><<BR>> 8. Select '''cassandra''' and click '''Finish'''. You now have a successfully imported Cassandra project. @@ -76, +76 @@ {{{ Main class: org.apache.cassandra.service.CassandraDaemon - VM options: -Dcassandra-foreground=yes -Dcassandra.config=@@@ -ea -Xmx1G - - Note -Dcassandra.config you want to replace @@@ with the full path to your cassandra.yaml config file (located in <cassandra_dir>/conf/cassandra.yaml) - eg: file:////Users/user/workspace/cassandra/conf/cassandra.yaml + VM options: + -Dcassandra-foreground=yes + -Dcassandra.config=file://$PROJECT_DIR$/conf/cassandra.yaml + -Dcassandra.storagedir=$PROJECT_DIR$/data + -Dlogback.configurationFile=file://$PROJECT_DIR$/conf/logback.xml + -Dcassandra.logdir=$PROJECT_DIR$/data/logs + -ea + -Xmx1G }}} 3. Click '''OK'''. @@ -106, +110 @@ = Notes = + == Java 7 since Cassandra 2.0 == + Dont forget to update IntelliJ to use JDK7 or later for Cassandra versions greater than Cassandra 1.2 {{attachment:7_JDK and Language Level Change.png}} {{https://c.statcounter.com/9397521/0/fe557aad/1/|stats}} + == Link IDEA to .classpath == + + If you did not check '''Link created IntelliJ IDEA modules to Eclipse project files''' in the project import dialog, you can change that later and IDEA will automatically use changes if .classpath file is regenerated using + {{{ + ant generate-eclipse-files + }}} + + {{attachment:3c-project-structure.png}} +
