Importing forester into Eclipse IDE
2010.04.19 4 Comments
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!
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.
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?
You can check it out anonymously (if not please let me know), see:
http://sourceforge.net/projects/forester-atv/develop
Yes, while Archaeopteryx is the most visible application of forester, the above applies to all classes within forester.
Pingback: Hello Google Summer of Code! « Google Summer of Code 2010: BioRuby