Java
  Home arrow Java arrow Page 3 - Getting Started with Java Web Development ...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVA

Getting Started with Java Web Development in Eclipse and Tomcat
By: Gangyi
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 17
    2007-05-23

    Table of Contents:
  • Getting Started with Java Web Development in Eclipse and Tomcat
  • Some Web Development Related Concepts
  • Downloads and Installations Required for This Tutorial
  • Start creating a web project with Eclipse

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    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)
    C:eclipse
    C:jakarta-tomcat-5.0.28

    More Java Articles
    More By Gangyi


       · Great article, I used this with Eclipse Studio and my new Java host who uses Tomcat...
     

    JAVA ARTICLES

    - 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 ...
    - Generics and Limitations in Java
    - Getting Started with Java Web Development in...






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT