Importing forester into Eclipse IDE

08 FEB 2011: FORESTER SOURCE CODE IS NOW HOSTED BY GOOGLE CODE AT http://code.google.com/p/forester/ THUS THE MATERIAL BELOW DOES NOT APPLY ANYMORE!

SEE: https://aptxevo.wordpress.com/2011/02/08/importing-forester-from-google-code-subversion-into-eclipse-ide/


Mainly for those interested in developing/modifying Archaeopteryx and its underlying forester libraries.

This describes how to import forester into the Eclipse (Java) IDE:

  • File | New | Project…
  • CVS – Projects from CVS
  • Next >
  • Host: —
  • Repository path: —
  • Connection type: extssh
  • Check: Use default port
  • Next >
  • Use specified module name: —
  • Next >
  • Finish

You will probably get two errors, to resolve them:

  • Highlight “forester-atv” (in Package Explorer)
  • Project|Properties
  • highlight “Java Build Path”
  • in “Libraries” tab:
    • Remove “gnujpdf.jar”, “iText-2.x.x.jar” (if there)
    • then, “Add External JARs…”:
    • 1. path/to/forester-atv/java/jars/iText-2.x.x.jar
      2. path/to/forester-atv/java/jars/fluorite.jar
  • OK

two errors should be gone now.

Project can now be tested by:

  • forester-atv/java/src/org.forester.test.Test.java right click “Run As” “Java application”

Project can now be built by (using Ant from within Eclipse):

  • forester-atv/java/build.xml right click “Run As” “Ant Build”
  • For this to work, environment variable JAVA_HOME needs to point to a JDK (at least 1.6)
  • Furthermore, a “<jar> type doesn’t support the ‘level’ attribute” error is a likely sign that your Ant version is too old — at least version 1.7.1 is required.

4 Responses to Importing forester into Eclipse IDE

  1. David Kidd says:

    I am having trouble downloading the forester-atx source code from Source Forge. I am being asked for a user name and password @forester-atv.cvs.sourceforge.net:/cvsroot/forester-atv?

  2. cmzmasek says:

    Yes, while Archaeopteryx is the most visible application of forester, the above applies to all classes within forester.

  3. Pingback: Hello Google Summer of Code! « Google Summer of Code 2010: BioRuby

Leave a reply to David Kidd Cancel reply