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/







Compiling with Ant



Information
When using the following code in your Ant script:

<javac srcdir="${src.dir}"
   debug="${javac.debug}"
   destdir="${build.dir}"
  includes="**"
  nowarn="on"
/>


the following error message will be displayed:
Compiler Adapter 'org.eclipse.jdt.core.JDTCompilerAdapter' can't be found.

This guide explains how to solve this problem.

Operating system used
Windows XP Home Edition Version 5.1 SP 2

Software prerequisites
Ant 1.6.1
Eclipse 3.0.1

Procedure
  1. Start Eclipse and select menu: Window | Preferences

  2. Expand node "Ant" and select node "Runtime".

  3. Select tab "Classpath".

  4. Select node "Global Entries" and press button "Add External JARs".



  5. Locate the eclipse plugins directory and select the following files:

    ../eclipse/plugins/org.eclipse.jdt.core_3.0.1/jdtCompilerAdapter.jar
    ../eclipse/plugins/org.eclipse.jdt.core_3.0.1/jdtcore.jar


    Ant runtime classpath settings

  6. Add the following line in the Ant build script:

    <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>

    To see an example, download ant build_demo11.xml.
    This build script requires 2 files: version.properties and version.html

  7. Ant can now compile the java code.