
        ====================
        How to compile JOnAS
        ====================


This is the content of the "How to compile JOnAS" Guide which is also available
in the JOnAS documentation at http://jonas.objectweb.org/doc.


1) Recompiling JOnAS from sources Using Ant
-----------------------------------------------

   1. Download latest Ant from http://ant.apache.org.
      You will find the build.xml file used for building JOnAS in
      jonas directory.

   2. You must have configure the JDK and ANT successfully.
      (JAVA_HOME, ANT_HOME, PATH environment variables)
      JOnAS 4.X requires a JDK 1.4.X

   3. Set the following environment variables with the correct value:
      JONAS_ROOT (mandatory)
      JETTY_HOME (jetty 5.x) or CATALINA_HOME (tomcat 5.x)

   4. build.properties file may be customized to set debug to on/off
      and set the mapper to use for MEJB.

   5. Run in this directory :
      $ ant install				# to build JOnAS
      or
      $ ant install_tomcat		# to build JOnAS-Tomcat
      or
      $ ant install_jetty		# to build JOnAS-Jetty


The result of the build will be equivalent to a binary distribution and will
be installed under JONAS_ROOT.

