SeSAmWithinEclipse

From SeSAm-Wiki

Jump to: navigation, search

Eclipse is an integrated software development environment in which you can edit the SeSAm source code, run tests, run SeSAm within a debugger etc.

Imporing the sources from CVS server

There does not seem to be a public read-only access availble, so you'd need a valid developer account. For this option refer to CVS.

Importing from sesam_src.zip

In every installation of SeSAm there is a file sesam_src.zip - this is the complete source code of your version of SeSAm. You can import this zip file into eclipse (actually it is exported from eclipse).

The SeSAm class you need to run for running SeSAm is: sesam.gui.mas.application.SeSAm.java

Steps to take

First create a new java project "sesam" in eclipse and import the sesam_src.zip into sesam/src.

However, when you try to run/build you will probably encounter a lot of unmet dependency errors. To meet the dependencies you'll need to import the corresponding .jar files into the project.

SeSAm depends on:

  • jgoodies
  • junit
  • xerces,
  • jfree chart

[On debian/*ubuntu systems those are readily available as packages. Afer installing those I added their .jars from under /usr/share/java into the projects build path and checked they are activated. (Don't know if that is the correct way to do it.)]

Others you'd need to locate on the net, download, extract and import into the project include:

  • wrapper (tanukisoftware.org)
  • junit.swingui
  • castor (exolab.org)
  • org.apache.commons.logging
  • sun apache bcel
  • jts.geom (vividsolutions.com)
  • sun awt geom
  • systray (snoozesoft)

From looking at the SeSAm.psf file mentioned on the CVS page I think there may be more needed things available in the cvs than are available in the sesam_src.zip?

I got further "access restriction errors" and found a setting in eclipse to treat them just as warnings.

Now, when trying to run SeSAm, the error message says the following:

org.exolab.castor.xml.MarshalException: The following exception occured while validating field: _seSAmMainDesktopFrameX of class: de.uniwue.ki.mas.xml.castor.v01.configuration.XMLConfiguration: Expecting an Long, received instead: java.lang.Integer{File: [not available]; line: 25; column: 20}
at org.exolab.castor.xml.Unmarshaller.convertSAXExceptionToMarshalException(Unmarshaller.java:794)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:760)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:626)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:840)
at de.uniwue.ki.mas.xml.castor.v01.configuration.XMLConfiguration.unmarshalXMLConfiguration(XMLConfiguration.java:3785)
at de.uniwue.ki.mas.application.configuration.ConfigurationReaderWriter.loadXMLConfiguration(ConfigurationReaderWriter.java:66
Personal tools