Skip to Main Content
Tomcat: The Definitive Guide, 2nd Edition
book

Tomcat: The Definitive Guide, 2nd Edition

by Jason Brittain, Ian F. Darwin
October 2007
Intermediate to advanced content levelIntermediate to advanced
496 pages
16h 50m
English
O'Reilly Media, Inc.
Content preview from Tomcat: The Definitive Guide, 2nd Edition

Sun Microsystems Java SE JDK

The Java programming language was initially developed by Sun Microsystems. Its Java JDKs are usually available for Linux, Solaris, and Windows. You can download them at http://java.sun.com/javase/downloads.jsp.

Sun offers at least a couple of packaging choices for each version of Java, for each operating system, and probably offers the best java command-line switch functionality.

Download the package for your operating system and CPU architecture. On Linux, here's how we installed it as an RPM package (as the root user):

# chmod 700 jdk-6u1-linux-amd64-rpm.bin
# ./jdk-6u1-linux-amd64-rpm.bin
[lots of legalese]
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
  inflating: jdk-6u1-linux-amd64.rpm
Preparing...                ########################################### [100%]
   1:jdk                    ########################################### [100%]
Unpacking JAR files...
        rt.jar...
        jsse.jar...
        charsets.jar...
        tools.jar...
        localedata.jar...

Done.

Once it is installed, set JAVA_HOME and PATH like this:

# JAVA_HOME=/usr/java/jdk1.6.0_01
# export JAVA_HOME
# PATH=$JAVA_HOME/bin:$PATH
# export PATH

Then, check to make sure your java executable points to the JDK you just installed:

# which java
/usr/java/jdk1.6.0_01/bin/java

Here's how the HotSpot JVM identified itself on one of our Linux computers:

$ java -version java version "1.6.0_02" Java(TM) SE Runtime Environment (build 1.6.0_02-b06) ...
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.
Start your free trial

You might also like

Apache Tomcat 7

Apache Tomcat 7

James Goodwill, Aleksa Vukotic
Java Servlet Programming, 2nd Edition

Java Servlet Programming, 2nd Edition

Jason Hunter, William Crawford

Publisher Resources

ISBN: 9780596101060Supplemental ContentErrata