Archived: Upgrade JDK 1.3 to JDK 1.4 on Tomcat 4.1

This section provides a tutorial example on how to upgrade JDK 1.3.1 to JDK 1.4.1 for Tomcat 4.1.18 server on Windows systems.

Someone reported a JSP compilation issue while following my tutorials with Tomcat 4.1.29 and JDK 1.4.x. In order to understand the issue better, I upgraded my Tomcat 4.1.18 installation from JDK 1.3.1 to JDK 1.4.1 with these steps:

1. Checked my JDK 1.4.1 installation. The following command shows that I have JDK 1.4.1_01 working correctly:

>\local\j2sdk1.4.1\bin\java -version
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)

2. Changed the "JAVA_HOME" environment variable and started Tomcat server with JDK 1.4.1 without any problem:

cd \local\jakarta-tomcat-4.1.18\bin
set JAVA_HOME=\local\j2sdk1.4.1

3. Created the following JSP page, hello.jsp, and copied to \local\jakarta-tomcat-4.1.18\webapps\ROOT:

<% out.println("Hello world!"); %>

4. Ran Internet Explorer (IE) with url: http://localhost:8080/hello.jsp. You should see "Hello world!" in the IE window.

I am pretty sure now my Tomcat server is running ok with JDK 1.4.1. See the next tutorial for the Tomcat error with JDK 1.4 on a JSP page using my

Table of Contents

 About This Book

 JSP (JavaServer Pages) Overview

 Tomcat Installation on Windows Systems

 JSP Scripting Elements

 Java Servlet Introduction

 JSP Implicit Objects

 Syntax of JSP Pages and JSP Documents

 JSP Application Session

 Managing Cookies in JSP Pages

 JavaBean Objects and "useBean" Action Elements

 Managing HTTP Response Header Lines

 Non-ASCII Characters Support in JSP Pages

 Performance of JSP Pages

 EL (Expression Language)

 Overview of JSTL (JSP Standard Tag Libraries)

 JSTL Core Library

 JSP Custom Tags

 JSP Java Tag Interface

 Custom Tag Attributes

 Multiple Tags Working Together

 File Upload Test Application

 Using Tomcat on CentOS Systems

 Using Tomcat on macOS Systems

 Connecting to SQL Server from Servlet

 Developing Web Applications with Servlet

Archived Tutorials

 Archived: Installing GlassFish JSTL 1.2 on Tomcat

 Archived: Downloading and Installing Tomcat 7

 Archived: Installing Tomcat 5.5.7

 Archived: Installing Tomcat 4.1.18

 Archived: Java Class Converted by Tomcat 4.1.18

 Archived: Hijacking Servlet Converted from JSP

 Archived: Using Perl LWP::Debug Module to Debug

 Archived: Installing JSTL 1.0 Apache Implementation

Archived: Upgrade JDK 1.3 to JDK 1.4 on Tomcat 4.1

 Archived: Compilation Errors with JDK 1.4

 Archived: Using JavaBean without Import Element Error


 Full Version in PDF/EPUB