Download and Setup

Depending on your existing environment and experience level, there are several ways to install JAM.

For step-by-step instructions on installing Java, JBoss, Maven and JAM see the JavaGen setup page.

Binary Download and Setup

Download the latest binary, extract it into a directory of your choosing (say /dev-tools/jam) and set the JAM_HOME environmental variable to that location. For example on Windows issue the following on the command line:

set JAM_HOME=c:/dev-tools/jam 

To install the JAM plugin and pre-populate your repository, go to JAM's install sub-directory and type:

c:/dev-tools/jam/intall> maven 

Source Download and Setup

Download the latest source, extract it into a directory of your choosing (say /usr/local/jam-src) and set the JAM_HOME environmental variable to the jam-module/src/ant sub-directory. On Unix this would look something like this:

export JAM_HOME=/usr/local/jam-src/jam-module/src/ant 

To install the JAM plugins and pre-populate your repository, go to JAM's top-level directory and type:

/usr/local/jam-src> maven 

Installing the JAM Plugin from Maven

If Java and Maven are already installed, the JAM plugin can be downloaded and installed as follows (everything should be on one line, adjust the version as needed):

maven plugin:download -DgroupId=jam -DartifactId=maven-jam-plugin -Dversion=2.1.beta2
      -Dmaven.repo.remote=http://www.ibiblio.org/maven/,http://www.javagen.org/maven/ 

Then test the plugin by requesting a goal listing:

maven -P jam 

JAM from CVS

To get the latest JAM code you can browse the CVS code or access the CVS database directly using a CVS client as follows:

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/javagen login 
(just press enter for the password)
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/javagen co jam