The Web Graph Database

wiki:Docs/NetBeansSetup

NetBeans Setup

InfoGrid is currently being developed using NetBeans. We considered Eclipse, but could not figure out how to reliably make the InfoGrid CodeGenerator and the Eclipse build system get along. (Volunteers?)

All NetBeans versions 6 or higher should work. We currently use NetBeans 7.0.1. If you do not use that version, you may have to re-generate some of NetBeans' auto-generated build files.

It works best if you create yourself a NetBeans "Project Group", and assign the web apps to your local Tomcat install.

Here is one way to do this:

  1. Start NB
  2. Navigate to File->Project Group->New Group
  3. Give it some name
  4. Select "Folder of projects"
  5. Navigate to ~/svn/svn.infogrid.org/infogrid/trunk (assuming you have followed the recommended convention)
  6. Create Group - and wait a bit, NetBeans seems like it's doing nothing but it's thinking quite hard
  7. Skip past the regeneration messages, but resolve the libraries (see below)
  8. Ensure that the following projects are assigned in their property setting to run on Tomcat: org.infogrid.jee.net.testapp, org.infogrid.meshworld, org.infogrid.meshworld.net

Library definitions

To be successful using InfoGrid in NetBeans, you need to set up the following library definitions in NetBeans, where:

  • <SVN-INFOGRID> represents the root of your InfoGrid Subversion tree, such as /home/joe/svn/svn.infogrid.org/infogrid.
  • <NETBEANS> represents the NetBeans installation directory, such as /Applications/NetBeans/NetBeans 6.9.1.app/Contents/Resources/NetBeans
Name of libraryPath
CopyLibs <NETBEANS>/java2/ant/extra/org-netbeans-modules-java-j2seproject-copylinkstask.jar
Hadoop <SVN-INFOGRID>/trunk/ig-vendors/libraries/hadoop.apache.org/hadoop/hadoop-core.jar <SVN-INFOGRID>/trunk/vendors/libraries/hadoop.apache.org/hadoop/lib/commons-logging-api.jar
J2EE <SVN-INFOGRID>/trunk/ig-vendors/libraries/sun.com/j2ee/lib/j2ee.jar
Jackson <SVN-INFOGRID>/trunk/ig-vendors/libraries/jackson.codehaus.org/jackson/jackson-all-1.8.2.jar
JetS3t <SVN-INFOGRID>/trunk/ig-vendors/libraries/jets3t.dev.java.net/jets3t/jars/jets3t.jar
JSTL <SVN-INFOGRID>/trunk/ig-vendors/libraries/jakarta.apache.org/jakarta-taglibs-standard/lib/jstl.jar <SVN-INFOGRID>/trunk/ig-vendors/libraries/jakarta.apache.org/jakarta-taglibs-standard/lib/standard.jar
Log4j <SVN-INFOGRID>/trunk/ig-vendors/libraries/logging.apache.org/apache-log4j/log4j.jar
MySQL <SVN-INFOGRID>/trunk/ig-vendors/libraries/dev.mysql.com/mysql-connector-java/mysql-connector-java-bin.jar
Postgresql <SVN-INFOGRID>/trunk/ig-vendors/libraries/jdbc.postgresql.org/postgresql.jdbc.jar
Last modified 3 years ago Last modified on 08/19/11 22:49:32