Originally Published: Tuesday, 2 October 2001 Author: Henry Chen
Published to: enhance_articles_sysadmin/Sysadmin Page: 1/6 - [Printable]

Serving Java from Linux

Ever want a server on your box that can serve JSP and Java Servlets but don't want to pay big money for a commercial solution? Then Linux.com has the article for you. Follow author Henry Chen into the land of the sun.

   Page 1 of 6  >>


Even with all the press coverage of XML and Java I find it strange why expensive software, such as BEA Web Logic or iPlanet, make the claim that only they can run Java applications.  With a little bit of research, I found out that this was not the case.  However, as usual, the documentation on open-source solutions lacked coherence, at least at first.  Although the scope of this document is a little narrow, I hope the following will help you deploy affordable Java servers.  


Like other efforts to put together various open-source platforms, putting together a server that supports JSP and Java Servelets requires that you to visit different web sites, download some tarballs, build some sources, if necessary, even install them somewhere and do lots of hand edits of configurations files to make things run together. This article will not cover those skills, but you will need them to do what we will cover here.

In order to not complicate things any further, I have decided to limit the scope of this discussion to installing the Java 2 Platform on Red Hat Linux 7.1.  Some parts of this document may be sourced from other web sites that I have read and helped me when I was learning.  I will point out all the original sources I can at various points in this document.

I am known for making quite a few silly typos.  If you find any part of this document that does not make sense (or more importantly is just plain wrong!), please e-mail me at: henry@sxpress.com


I started with a Red Hat Linux 7.1 server installation using only the Web Server module.  Then, I added the RPMs relating to MySQL since a web server running just Java without any database support seems pointless.  For the Java installation, you will need these:

  • The Jakarta Project - Specially, you want to download files relating to the  Tomcat subproject.  Get the latest binaries and source codes tarball.  You will need both.  As of this writing, the latest version is 3.2.3

  • Java SDK - For the purpose of this document, we want the most current SDK, which happens to be Java 2 SDK, Standard Edition, v 1.3.1.  Get the RPM version to save some time.

  • apache-devel RPM - get this from the Red Hat 7.1 CD (Disk 2)

  • compat-libstdc++-6.2 RPM - get this from Red Hat 7.1 CD (Disk 2), Java SDK 1.3.1 uses this library instead of the newer library that Red Hat Linux 7.1 installs by default.

   Page 1 of 6  >>