Skip to Content
Tomcat: The Definitive Guide
book

Tomcat: The Definitive Guide

by Jason Brittain, Ian F. Darwin
June 2003
Intermediate to advanced
320 pages
9h 52m
English
O'Reilly Media, Inc.
Content preview from Tomcat: The Definitive Guide

Appendix A. Installing Java

There are at least a few Java Software Development Kits (SDKs) and Java Runtime Environments (JREs) available that will support Tomcat, depending on which operating system you run. To run Tomcat, you need a Java 2 Standard Edition (J2SE) SDK. You need a Java compiler to use JavaServer Pages. If you do not wish to use JSP, you can use a J2SE JRE instead of a J2SE SDK. See Sun’s J2SE home page (http://java.sun.com/j2se) for more information about what the J2SE includes.

Each SDK includes a JRE, but if you download a JRE by itself, then you do not also have an SDK. The difference is that an SDK includes tools such as a Java compiler, debugger, and profiler, in addition to a runtime environment.

The J2SE SDKs we tested include Sun’s HotSpot J2SE 1.4.1, IBM’s 1.4.0 JDK, BEA’s JRockit 8.0 J2SE 1.4.1, and Apple’s J2SE 1.4.1. They each worked very well for us. Tomcat also works on Versions 1.2 and 1.3 of Java, so you may decide to use 1.2 or 1.3, but this may complicate things (minor complications that are mentioned throughout this book). Choose an SDK, and then read and follow the installation documentation for the one you choose.

For Tomcat to use a Java SDK, you just need to make sure that the JAVA_HOME and PATH environment variables are set appropriately. JAVA_HOME must be set to the full path of your SDK, and PATH must be set so that the first java binary found on PATH is the one you want to run. For example:

$ JAVA_HOME=/usr/local/j2sdk1.4.1_02 $ export ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Tomcat: The Definitive Guide, 2nd Edition

Tomcat: The Definitive Guide, 2nd Edition

Jason Brittain, Ian F. Darwin
Apache Tomcat 7

Apache Tomcat 7

James Goodwill, Aleksa Vukotic

Publisher Resources

ISBN: 0596003188Errata Page