Building JOnAS on Debian

This is how I got JOnAS to build on Debian. See the thread on the mailing list

Download the JOnAS package

JOnAS can be downloaded from Object Web Forge Repo and select jonas4.6.6-src.tgz.

Extract the archive (as usual)

    $ tar -zxvf jonas4.6.6-src.tgz

install java-gcj-compat | kaffe, ant-optional

use update-alternatives

    $ update-alternatives --set javac /etc/alternatives/kaffe-system/bin/javac
    $ update-alternatives --set java /etc/alternatives/kaffe-system/bin/java

Managing RMI

There was some difficulty with RMI, as the Free RMI Compiler has some missing features ( see bug] ).

Changes to congiguration files

File: build.xml replace sun in the rmic target by kaffe and set iiop=false

    336     <!--<rmic compiler="sun"-->
    337     <rmic compiler="kaffe"
    338           iiop="false"

File: src/conf/carol.properties

    28 carol.protocols=irmi

== Start Building ==

Now run

    $ ant 
    $ ant all_tomcat

Make sure you have tomcat 5.5 installed (Does not have a Debian package yet so download from Tomcat site] and set CATALINA_HOME variable to the extracted directory.

I tried to run it using different jvms (gcj, kaffe, jamvm, cacao but was not able to run it yet).

    pravi@icon113:~/jonas/output/JONAS_4_6_6/bin/unix$ java -version
    java version "1.4.2"
    gij (GNU libgcj) version 4.1.0 20060127 (prerelease)

    Copyright (C) 2005 Free Software Foundation, Inc.

So the package builds fine. Since the Free JVMs are not able to run it I didn't create a package. But I think I should create a package now!

contact pravi (dawt) a (yawt) gmail (dwat) com if you want the build logs.

Java/Building/JOnAS (last edited 2009-04-14 14:09:14 by GuillaumeDelacour)