Skip to main content
Jump to: navigation, search


Revision as of 11:30, 15 June 2009 by (Talk | contribs) (New page: <h1>Running Eclipse Source builds for 3.5 (Source from CVS)</h1> <h2>What is an Eclipse Source Build?</h2> <p>Eclipse source builds provide developers with an automated method for checki...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Running Eclipse Source builds for 3.5 (Source from CVS)

What is an Eclipse Source Build?

Eclipse source builds provide developers with an automated method for checking out source code and other required resources, compiling the Java code, generating javadoc, and finally, creating a zip file of an Eclipse runtime from a downloaded ource tree. The end result of a source build is a runnable Eclipse.

Getting the Source

A source build download contains shell and ant scripts that fetch and build a particular version of Eclipse. Although you can manually edit build.xml files in each feature and plug-in, they are typically generated by the Eclipse pde-build plug-in. As a result you will need to download a fresh source build zip file when major changes occur to Eclipse source, such as the addition or removal of plug-ins. The version of Eclipse a particular source build will create is embedded in the source build zip file name. For example, builds Eclipse from integration build 20030624.

Building Eclipse using Ant and a JDK</h2>


<p>Produces an Eclipse SDK using the Java compiler you have installed.

System Requirements

  1. <a href="">Ant 1.7.1</a> or higher
  2. <A HREF="">1.4, 1.5 and 1.6</A> JDKs
  3. <a target="extra" href="">Info-Zip</a> zip and unzip executables on system path. Tar for *nix distributions
  4. <a href="">CVS 1.10 </a> or higher
  5. 1 GB free disk space
  6. Source build zip from <a href=""></a>

Initial Setup

Install Ant, 1.6 JDK, and a CVS client, as per each program's instructions. Minimally

you will need the following environment variables set.

  1. Add the Ant bin directory, and the CVS executable to your path.
  2. Set the JAVA_HOME environment variable to the root of your 1.6 JDK installation.
  3. Set the ANT_HOME environment variable to the root of your Ant installation.
  4. (Windows 98) Set the HOME environment variable to c:
  5. (Windows 98) Increase the default environment space as specified <a href=";EN-US;q230205">here</a>.

Run the Build

  1. Extract the eclipse-sourceBuild-*.zip to a directory. Extract using tar if using a *nix drop.
  2. Update the file included at the root of this zip to point to the bootstrap classpath of your 1.4, 1.5, and 1.6 JDK locations.
  3. cd to the buildScripts directory.
  4. Execute build -os <osType> -ws <windowSystemType> -arch <architecture> [-bc <bootclasspath>] [-target <target>]

      </tr> </tr>
      Parameter NameDescription
      osTypeTarget operating system (<a href="#build_platforms">See supported types</a>).
      windowSystemTypeTarget windowing system (<a href="#build_platforms">See supported types</a>).
      architectureTarget system architecture (<a href="#build_platforms">See supported types</a>).
      bootclasspath (optional)The default list of bootclasspath jars to compile against using
               either a colon or semi-colon as separators. The jars that make up a 
               bootclasspath are part of any JDK or JRE. Typically this parameter is 
               only specified if you are cross compiling Eclipse. The default is set to the 
      jars in the JDK or JRE in JAVA_HOME.
      target (optional)

      The Ant target from build.xml to execute. The default target is run and performs a complete fetch, build, javadoc build and install. Other valid targets are:

      • fetch
      • compile
      • install


Install Eclipse

When the Eclipse build is complete, there will be a zip file called


in the results subdirectory of your build directory. If you are building for Linux or Mac, there will be a tar.gz file.


Extract this file to the directory where you would like to run Eclipse. If you extract it to your root directory, a directory called eclipse will be created.

Run Eclipse with the <a href="">desired command line parameters</a>.

Supported Platforms

Eclipse can be built on any of the following platforms. With some <a href="#limitations">limitations</a> any platform can be used to build Eclipse for any or all supported platforms. To see the latest information on the platforms supported for a given release, refer to the latest <a href="">project plan</a>

Operating System (os) Windowing System (ws) Archecture
win32 win32 x86
win32 wpf x86
linux gtk x86
linux gtk x86_64
linux gtk ppc
macosx carbon ppc
macosx cocoa x86
macosx cocoa x86_64
aix motif ppc
solaris gtk sparc
linux gtk s390
linux gtk s390x

Known Limitations

  1. Building unix flavours of Eclipse on Windows will result in incorrect file permissions. The *.so, *.sl, and Eclipse executable files will not have execute permissions. In addition, linux-motif and linux-gtk builds will not have soft links to in the installation root directory. In these cases you would have to write an install or post install script to set permissions properly. (UNIX builds built on UNIX systems will set sufficient permissions and make the appropriate soft links).
  2. Only Java source code is compiled. *.dll, *so, *sl and Eclipse executables are all checked out of prebuilt in this build process. The instructions on <a href="">recompiling
       the eclipse executable</a> and <a href="">recompiling
       the swt libraries</a>  available in the <a href="">SWT
       FAQ</a> are also a useful reference. This document also includes a list of the prerequisites <a href="">for
    running SWT on Linux GTK</a>
  3. For the platforms where JDK 1.6 support is not yet available e.g linux-gtk-s390, linux-gtk-s390x the Eclipse SDK can be built with JDK 1.5 in place JDK 1.6. To do that, please follow the following steps:

    • Edit

      the file build.xml: replacing the tags <property name="javacSource" value="1.6"> with <property name="javacSource" value="1.5"> and <property name="javacTarget" value="1.6"> with <property

      name="javacTarget" value="1.5">
    • Remove code which compile

      and package the plugins that require JDK 1.6 currently: org.eclipse.jdt.compiler.tool, org.eclipse.jdt.compiler.apt and org.eclipse.jdt.apt.pluggable.core from the files features/org.eclipse.jdt/feature.xml and

    • <property name="javacSource" value="1.4">

Back to the top