Requirements

The four main requirements for the library is:

With Dom4J make sure you include the full jar in your classpath. If you plan on using the SOAP Servlet functionality of the library you also will need to have the servlet api in your path.

For Bouncy Castle Crypto you need a JCE and a crypto provider. If you're using JDK1.4 you will allready have a JCE. Otherwise the easiest thing todo is to get their combined JCE/Provider. I would also recommend getting the signed jar for your version of the JDK and install it as an extension in $JAVA_HOME/jre/lib/ext.

You also will need to edit your $JAVA_HOME/jre/lib/security/java.security file as well. Adding the following line:

security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider 

Making sure to change the 6 to whatever the last number is in the sequence of providers

Building

To build anything within the NeuClear framework you first need to install Maven. Follow their installation instructions and you should be ok. I haven't tried this under windows yet, but I'm guessing it should work fine.

Maven fetches all the required libraries you need the first time you attempt to build it.

First checkout the source from CVS:

~/projects/> cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/neuclear login
~/projects/> cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/neuclear co neuclear-xmlsig
~/projects/> cd neuclear-xmlsig 

Familiarise yourself a bit with maven. It's a bit different than ant, but very easy to learn. To see the options available go to the type:

~/projects/neuclear-xmlsig> maven -g

Of these the most important one is to simply type:

~/projects/neuclear-xmlsig> maven jar:install

If you use IntelliJ IDEA maven will create a project file for you automatically:

~/projects/neuclear-xmlsig> maven idea