These are the instructions for using jsig as a library in a different project

1. Create the following JARs:

  • jsig.jar - the jsig code (generate using the "jar" ant target)
  • jsig-config.jar - the configuration files that jsig expects to find on the classpath (alternatively, copy them to somewhere on the classpath). This JAR can be generated using the "jsig-config-jar" ant target.

The files are:

  • cmet-file.properties (update this to include the mif files that are special to your project)
  • code-value-factory.xml
  • domain-oid-map.xml (from the /build directory, NOT from /etc !!)
  • rim-map.properties
  • type-map.properties
  • units.xml
  • all.hbm.xml (if Hibernate functionality is needed)
  • hibernate.cfg.xml
  • mifs207.jar - just zip all the mifs into a jar file

(This should now all placed into the build directory during the build process)

2. Put the following files in the classpath of your project:

  • jsig.jar
  • jsig-config.jar
  • flatMif.jar
  • serialMif.jar
  • mifs207.jar
  • saxon8.jar
  • xbean.jar (if needed, the jar that comes with javasig [which is for v1.0.4] can be replaced by v2 )
  • dom4j-1.6.jar

If Hibernate functionality is needed:

  • hibernate3.jar

and its required libraries:

  • antlr*.jar
  • asm.jar
  • asm-attrs.jar
  • cglib*.jar
  • commons-collections*.jar
  • ehcache*.jar
  • jta.jar

In addition, the jar for the jdbc driver of your choice.