How to compile JOnAS

  1. Target Audience and Rationale
  2. Getting the Jonas Source
  3. Recompiling JOnAS 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

JOnAS uses the GNU make utility. You can download it from GNU site: "http://www.gnu.org/software/make/make.html" if you don't have it yet.

For NT users, you have to download cygnus tools that will provide you with a Unix like environment. Look at "http://sourceware.cygnus.com/cygwin/download.html".

First of all, you must set the correct paths for all the jar files included in classpath. For this, edit the file $OBJECTWEB_HOME/jonas/gmk/config.mk and follow the instructions at the end of the file.

If you want to rebuild JOnAS on JEREMIE instead of RMI you have to set OBJECTWEB_ORB=JEREMIE in your environment.

To rebuild JOnAS from the sources, you just have to run make in objectweb/jonas directory:

    cd $OBJECTWEB_HOME/jonas
    make install
  

The equivalent of the binary distribution will be produced in $JONAS_ROOT