Home arrow Java arrow Page 3 - Getting Started with Java Web Development in Eclipse and Tomcat

Getting Started with Java Web Development in Eclipse and Tomcat

This is the first part of a series of Java Web development tutorials. It is intended to warm you up by introducing two fundamental Java web components, JSP and Servlet, and helping you prepare your development and deployment environments for the next steps.

Author Info:
By: Gangyi
Rating: 4 stars4 stars4 stars4 stars4 stars / 68
May 23, 2007
  1. · Getting Started with Java Web Development in Eclipse and Tomcat
  2. · Some Web Development Related Concepts
  3. · Downloads and Installations Required for This Tutorial
  4. · Start creating a web project with Eclipse

print this article

Getting Started with Java Web Development in Eclipse and Tomcat - Downloads and Installations Required for This Tutorial
(Page 3 of 4 )

The following installation instructions are for modern Window Platforms (2000/XP) with a minimum of 512 megabytes memory; 1 gigabyte is recommended.

Java2 Standard Edition (J2SE) and JDK

To download JDK 1.4.2, go to Sun's Java previous release: http://Java.sun.com/j2se/1.4.2/download.html.

Select J2SE v 1.4.2_14 SDK instead of J2SE v 1.4.2_14 JRE, and click on "Download J2SE SDK."

On the next page accept "License Agreement" and download j2sdk-1_4_2_14-windows-i586-p.exe.

After it finishes, double click on your saved downloading and do full installation.

Install the Eclipse IDE on Windows Workstation

Here is what Eclipse websites tell you:

Eclipse is an open source community, whose projects are focused on building an extensible development platform, runtime and application framework for building, deploying and managing software across the entire software lifecycle. Many people know us, and hopefully love us, as a Java IDE but Eclipse is much more than a Java IDE.

The Eclipse open source community has over 60 open source projects. These projects can be conceptually organized into seven different "pillars" or categories:

  1. Enterprise Development
  2. Embedded and Device Development
  3. Rich Client Platform
  4. Rich Internet Applications
  5. Application Frameworks
  6. Application Lifecycle Management (ALM)
  7. Service Oriented Architecture (SOA)

Eclipse is a popular, open source, and free development environment. It has everything you need to develop enterprise applications, including an IDE, Integrated Test Environments (such as Generic J2EE, Tomcat, Weblogic, and Websphere, etc.), building and deploying tools.

If you want get more information, visit Eclipse official site at http://www.Eclipse.org/

We'll use the Eclipse's all-in-one version. It bundled with Core Eclipse 3.2.2, Eclipse Web Tools Platform (WTP) 1.5.3, and other prerequisites so you don't have to download and install each part separately.

Some body has done the bundling - go to: http://www-128.ibm.com/developerworks/Eclipse/downloads/ and download J2EE-SDK-Callisto-322-win32.zip.

Installation is extremely simple - just unzip the file into the designated directory, for example, you C driver, you'll get C:eclipse and you are ready to go.

Download and install Tomcat

You can get much information from Apache Tomcat's official site: http://tomcat.apache.org/

Besides installation, we won't go into detail for this tutorial. Here is a brief introduction:

Apache Tomcat is the Servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed by Sun under the Java Community Process.

Apache Tomcat is developed in an open and participatory environment and released under the Apache Software License. Apache Tomcat is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project. To learn more about getting involved, click here.

Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations. Some of these users and their stories are listed on the PoweredBy wiki page.

Go to http://archive.apache.org/dist/tomcat/tomcat-5/v5.0.28/bin/ and get jakarta-tomcat-5.0.28.zip.

You probably will ask why we need to install JDK 1.4.2, since we install bundled Eclipse and it's already bundled with supported JDK. The reason is that we are going to develop and test our JSP or Servlet in the integrated Eclipse environment so no additional dependencies are required. In the following tutorials, we'll also export them from Eclipse and deploy them to the Tomcat server. Before JSP or Servlets can run in Tomcat, they have to be compiled, so JDK instead of JRE is required. Tomcat 5 has been extensively tested with JDK 1.3.1 and JDK 1.4.2

Installation is another easy task. Unzip jakarta-tomcat-5.0.28.zip to your target location, say, you hard drive C. You'll get C:jakarta-tomcat-5.0.28.

Now we need to set up two environment variables: CATALINA_HOME and JAVA_HOME. I'm sure you have done this before. The screenshot is my laptop's environment variable setting:


Up to now, you should have following installations:

C:j2sdk1.4.2_XX (mine is C:j2sdk1.4.2_12)

blog comments powered by Disqus

- Java Too Insecure, Says Microsoft Researcher
- Google Beats Oracle in Java Ruling
- Deploying Multiple Java Applets as One
- Deploying Java Applets
- Understanding Deployment Frameworks
- Database Programming in Java Using JDBC
- Extension Interfaces and SAX
- Entities, Handlers and SAX
- Advanced SAX
- Conversions and Java Print Streams
- Formatters and Java Print Streams
- Java Print Streams
- Wildcards, Arrays, and Generics in Java
- Wildcards and Generic Methods in Java
- Finishing the Project: Java Web Development ...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials