How to compile JOnAS

  1. Target Audience and Rationale
  2. Getting the JOnAS Source
  3. Recompiling JOnAS from the Sources
  4. Recompiling the packaging JOnAS/Jetty/Axis from the Sources
  5. Recompiling the packaging JOnAS/Tomcat/Axis from the Sources

Target Audience and Rationale

This chapter is dedicated to JOnAS users that want to built a JOnAS version from the source code get from CVS

Getting the JOnAS Source

CVS (Concurrent Version System) provides network-transparent source control for groups of developers. It runs on most UNIX systems and Windows NT. You can get more information on http://www.cyclic.com.

Working with CVS allows you to do things like cvs status or cvs diff and any other read-only cvs commands. However, you will not be allowed to commit changes yourself because it's read only. To start working with CVS on JOnAS, you must make a checkout of the jonas module with a command like this:

    cvs -d :pserver:anonymous@cvs.objectweb.org:/JOnAS login
    (hit enter key when prompted for password)
    cvs -d :pserver:anonymous@cvs.objectweb.org:/JOnAS co jonas
    

You can also set your CVSROOT variable instead of using the -d option.

Recompiling JOnAS from the Sources

  1. Download Ant from the Ant project site.

    You will find the build.xml file used for building JOnAS in objectweb/jonas directory.

  2. You must have configure the JDK and ANT successfully. (JAVA_HOME, ANT_HOME, PATH environment variables)
  3. Set the following environment variables with the correct value:
  4. All that you have to do is:

    cd $OBJECTWEB_HOME/jonas and choose a target :

Recompiling the packaging JOnAS/Jetty/Axis from the Sources

  1. Download Ant from the Ant project site.

    You will find the build.xml file used for building JOnAS in objectweb/jonas directory.

  2. You must have configure the JDK and ANT successfully. (JAVA_HOME, ANT_HOME, PATH environment variables)
  3. Set the following environment variables with the correct value:
  4. All that you have to do is:

    cd $OBJECTWEB_HOME/jonas and choose a target :

Recompiling the packaging JOnAS/Tomcat/Axis from the Sources

  1. Download Ant from the Ant project site.

    You will find the build.xml file used for building JOnAS in objectweb/jonas directory.

  2. You must have configure the JDK and ANT successfully. (JAVA_HOME, ANT_HOME, PATH environment variables)
  3. Set the following environment variables with the correct value:
  4. All that you have to do is:

    cd $OBJECTWEB_HOME/jonas and choose a target :