HOWTO Run Tomcat On Kaffe#

  • Download and install the latest developer release of Kaffe. That's 1.1.3 at the moment.
  • Download and extract Tomcat. I used Tomcat4 (4.1.29, to be precise), Tomcat3 should also work fine on Kaffe. Tomcat5 doesn't at the moment [correction: now (2004-10-17) it does, more info soon]
  • Set the environment variable JAVA_HOME to where you installed Kaffe. That's export JAVA_HOME=/usr/local/kaffe in Bash if you haven't changed the installation prefix, for example.
  • Tell Tomcat to use Kaffe's java compiler KJC to compile the JSP pages by setting the environment variable JAVA_OPTS to -Dbuild.compiler=kjc. That's export JAVA_OPTS="-Dbuild.compiler=kjc" in Bash, for example.
  • Download and extract Jakarta Struts (I used 1.1). You need to copy one file, lib/struts-legacy.jar from Struts into Tomcat's server/lib/ directory. I'm not sure why you need this, but without it, Tomcat's Admin interface will complain.
  • Cd into the directory where you extracted Tomcat, run it by invoking bin/startup.sh.

You may also want to allow Kaffe to use more memory, if the default limit of 64M is too small for your Tomcat4 needs. You can do that by adding -Xmx128M to JAVA_OPTS, for example.

Details For Debian#

  • Add contrib to your apt sources.list if not already there and run apt-get update
  • apt-get install kaffe tomcat4 libstruts1.1-java
  • Add the following to /etc/defaults/tomcat4
JAVA_HOME=/usr/lib/kaffe
CATALINA_OPTS="-Xmx128M -mx256M -Dbuild.compiler=kjc"
  • ln -s /usr/share/java/struts-1.1.jar /usr/share/tomcat4/common/lib/struts-1.1.jar

Congrats, guys. This is a good milestone for Free Software! --JanneJalkanen


Kaffe 1.1.5 released - www.kaffe.org --Igor Sidorov

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-5) was last changed on 11-Apr-2005 14:41 by 217.106.202.10