Eclipse

 
 
The Eclipse Workbench is an open source platform, designed by IBM and released to the open source community. It is an open, portable, universal tooling platform that provides frameworks, services and tools for building tools.

In essence the workbench provides the tool infrastructure. With this infrastructure in place, the tool builders are able to focus on the actual building of their tools. The workbench has been designed for maximum flexibility to support the development of tools for new technologies that may merge in the future.

Industry leaders Borland, IBM, Merchant, QNX Software Systems, Rational Software, RedHat, SuSE, TogetherSoft, and WebGain formed the initial eclipse.org board of directors and began work on the Eclipse open source project.

More information about The Eclipse Workbench can be found at:
http://www.eclipse.org

Eclipse FAQ can be found at:
http://wiki.eclipse.org/index.php/Eclipse_FAQs

The latest Eclipse version can be downloaded from: http://www.eclipse.org/downloads/

There are hundreds of plugins which you can add to Eclipse, for example plugins for testing, code management, uml, xml, etc. The Eclipse plugins can be found at: http://www.eclipseplugincentral.com/







Setup Eclipse for Web Development.



Information
none

Operating system used
Windows XP Home Edition Version 5.1 SP 2

Software prerequisites
Eclipse 2.1.1

Procedure
  1. Select button "Java Perspective".

    Java Perspective

    If this button is not displayed, select button "Open a Perspective" | Other | Java

  2. Enter a project name (example): mobilefish_demo and press button Next.

    New Java Project

  3. Press button "Add Folder"

    Java Settings

  4. Press button "Create New Folder". The "New Folder" popup window is displayed. Enter Folder Name: src
    Press button OK.

    Create Folder

  5. A message will be displayed, select button Yes.

    Source Folder Added

    Java Settings

  6. Change the default output folder into: mobilefish_demo/WEB-INF/classes

    Change Output Folder

  7. When Eclipse is installed, it does not automatically include jar files needed for web development. To add a jar file:
    Select tab: Libraries
    Press button: Add Variable

    Java Settings Libraries

  8. Press button: Edit

    Eclipse add variable



  9. Press button: New

    Eclipse preferences

  10. This is a list of all jar files needed for web development and its location.

    Purpose Name File Reference
    When using servlets, ejb etc. J2EE_LIB J2EE_HOME/lib/j2ee.jar J2EE SDK

    To add a jar file, for example j2ee.jar:
    Enter a descriptive name for this file (e.g.: Name = J2EE_LIB)
    File: Search the jar file
    Press OK button

    Eclipse variable entry

  11. Press OK button followed by Cancel button

    Eclipse Preferences

  12. Press button: Add Variable

    Java Settings Libraries

  13. Select variable J2EE_LIB and press OK button.

    Select Variable

  14. Press Finish button.

    Press Finish Button

  15. Web applications should be organized (preferred solution) using the following folder structure:

    Folder Name Purpose
    <Project> The project name. Use a short project name and make it one word (example: mobilefish_demo).

    Contains *.html, *.jsp files.
    <Project>/src Contains *.java files
    <Project>/WEB-INF Contains web.xml, tag library descriptor (*.tld) files
    <Project>/WEB-INF/classes Contains *.class, *.properties files
    <Project>/WEB-INF/lib Contains *.jar, *.zip library files


    The src folder contains all the Java sources. You should organise your sources (preferred solution) in the following packages:

    Package Purpose
    com.mobilefish.tools Contains small standalone applications.


    Web Environment

  16. Create a mobilefish_demo.war file and drop the war file in the jboss deploy directory. For example: C:\Tools\jboss-3.0.4\server\default\deploy

    Note: You do not need to create a war file, just create a folder:
    C:\Tools\jboss-3.0.4\server\default\deploy\mobilefish_demo.war
    and create the folders (mentioned in the table above), then copy all necessary files *.html, *.jsp, *.classes, *.xml, etc. in their corresponding folders.

  17. Start JBoss and enter URL:
    http://localhost:8080/mobilefish_demo/index.html