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 using Struts



Information
none

Operating system used
Windows XP Home Edition Version 5.1 SP 2

Software prerequisites
Struts 1.2.6 or higher
Eclipse version 3.0.2 or higher

Procedure
  1. Download and unzip struts-1.2.6.zip.
    For example: C:\Tools\struts-1.2.6

  2. Create an empty directory.
    For example: C:\unzipped_struts

  3. Copy C:\Tools\struts-1.2.6\webapps\struts-blank.war to C:\unzipped_struts

  4. Unpack struts-blank.war.

    Type: cd C:\unzipped_struts
    Type: jar xvf struts-blank.war

  5. Remove and move certain files:

    • Move ..\WEB-INF\src\java\MessageResources.properties to ..\WEB-INF\src\MessageResources.properties
    • Delete directory ..\WEB-INF\src\java
    • Delete build.xml and README.txt in ..WEB-INF\src
    • Delete C:\unzipped_struts\struts-blank.war

  6. Create project cma in Eclipse:
    • Start Eclipse.
    • Select Java perspective.
    • Right click in the "Package Explorer" window.
    • Select menu: New | Project.
    • Expand Java folder.
    • Select Tomcat Project and press Next button.
    • Enter Project name: cma
      Use default project: C:\workspace_tomcat\cma
      Press Next button
    • Context name = /cma
      Can update server.xml file is enabled.
      Subdirectory to set as web application root = /
      Press Finish button.
    • The cma project folder is created.



  7. Import files from C:\unzipped_struts into the cma project:
    • Right click on cma project folder.
    • Select Import.
    • Select "File system" and press Next button.
    • Browse to directory: C:\unzipped_struts
      Select checkbox unzipped_struts
      Select "Created selected folders only".
      Press Finish button.

  8. Set the properties for the cma project:
    • Right click on cma project folder.
    • Select Properties.
    • Select "Java Build Path"
    • Select tab Source.
      • Verify if "Source folders on build path" = cma/WEB-INF/src, cma/work
      • Verify if "Default output folder" = cma/WEB-INF/classes
    • Select tab Libraries.
      • Press button "Add JARs".
      • Goto cma/WEB-INF/lib
      • Select all jar files.
      • Press OK button twice.

  9. Directory C:\unzipped_struts in not needed and can deleted.

  10. Select menu: Tomcat | Start Tomcat.

  11. In a web browser enter: http://localhost:8080/cma

    A welcom page is displayed.