Documentation TaskDoc JavaDoc

Eclipse plugin

The following contains installation, introduction, and other information about the Eclipse plugin for


Open Eclipse, and choose the Help > Install New Software... option in the menu.

Enter the update site into the Work with: text field, and press Enter. Eclipse should load the following plug-ins from the site:

You may need to uncheck Group items by category to see the plug-ins. Select system plugin to add the system support to Eclipse. If you plan on using Java, we recommend installing Java IDE support for as well.

Wait for the installation to complete, and restart Eclipse.

(If you're prompted with a warning that you're installing unsigned content, click on Install anyway.)

Configuring a project

You can add to new, or existing project as well. To get started, create a new general project using the File > New > Project... menu and the General > Project option:

No other configuration is required for it, simply enter the Project name and Finish:

A new empty project will be created. You can add the system for it by right-clicking on it and choosing Configure > Add nature:

This will cause the system to be used by your project. If you have automatic builds enabled, you might be presented with the following dialog:

This is due to the fact that Eclipse will start a build for the project after you've added the nature, however, the build system won't find any build files in your newly created empty project.

If you have automatic builds turned off (we recommend doing that), and don't have a build file, you can add a new build file by right clicking the project and using the > Add new build file option:

This will cause an empty file to be created in your project root. You can also add new build files by using the New > File option.

Running a build

Let's continue our example from above. We're going to compile some Java sources. Create a new directory for your project called src using the New > Folder option.

Open the build file, and add the following to it:

You can build the project using the following ways:

1. Project > Build project

If you have automatic builds turned off, using the Project > Build project option will cause to be run for your project. This will cause the build target that was last invoked for your project to be run. If you haven't run a previous build for your project, the following dialog will be presented for you to choose:

2. > [] > [build-target]

You can manually select the build target to be run from the menu:

This will cause the selected build target to be run for your project. Note, that in this case other builders associated with your project won't run.

3. Use the Run command (hotkey)

The Eclipse plugin provides a command that can be invoked to run the build for the active project. It is bound to the key F9 by default. You can simply press F9 to run for your project.

You can modify the associated hotkey in the Window > Preferences > General > Keys > Run option:

(Dialog cropped and modified for size.)

Applying project configuration

After you've run the build in the previous example, you may want to configure your project to have Java development support enabled for it. During the build, the build tasks will generate meta-information about the executed operations. These are called IDE configurations, and you can apply them to your project by choosing the > [language] > [configuration-ID] option:

(Note that the following assumes you've selected Java IDE support for in Installation as well.)

Selecting it will open the configuration dialog where you can choose which aspects of the generated IDE configuration to apply to your project:

Based on the previous builds, applying the above will cause your project to have Java support, and will set the src directory as a source directory. The configuration also applies the specified JRE to your project. Clicking OK will configure your project as follows:

The project configuration supports more complex examples as well, including classpath, modulepath, multiple source directories, and others.