This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

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.
  • 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/

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
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

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 13-Jan-2004 12:21 by Killer.