Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You have two choices here: either work on our server, or install Eclipse on your own computer.

Working on Our Server

Using one of the SunRay  thin clients found all over the place, you can use the reference  installation of Eclipse on our server. Just log in and start Eclipse  using the following command line:

   /home/java/eclipse/eclipse

This  will always point to the current reference installation. Feel free to  setup a link on your desktop to avoid having to start the console every  time.

...

To start working on KIELER, you will need an Eclipse installation, configure it correctly, and import all the necessary projects. Choose one of the options below and run with it.

Info
titleWhich Java Version Do I Need?

At least Java 11!

Oomph Setup

This is the easiest way, and is recommended for everyone.

Warning
titleOomph Setup on GitHub

The following guide is no longer valid. Please use the setup instructions that are located in the wiki of the corresponding repository on GitHub.

If you are using an Eclipse installation for development on the Kieler project that was set up with the deprecated instructions, please consult this guide.

Expand
titleClick here to expand the installation guide... (DEPRECATED)
  1. Go to this site and download the Eclipse Installer for your platform. The site does not advertise that it ships the Oomph Eclipse Installer but downloading Eclipse with the orange download button will give you the installer.
  2. Start the installer. You should see something like this:
    Image Added
    Click the Hamburger button at the top right corner and select Advanced Mode. Why? Because we're computer scientists, that's why!
  3. Oomph now wants you to select which Eclipse distribution you want to use to develop KIELER in. Select the Eclipse Platform. Afterwards choose Latest Release as Product Version and click next.

    Image Added
  4. Next, we need to tell Oomph how to setup an Eclipse ready for KIELER development. Click the Plus button at the top right corner. Select Eclipse Projects as Catalog and insert the following URL into the Resource URI field, then press OK.

    No Format
    https://git.rtsys.informatik.uni-kiel.de/projects/KIELER/repos/config/browse/setups/kieler-developers.setup?raw
    Warning

    This URL is no longer valid, see comment above.

    Info

    In an earlier version of this site, you might be instructed to download the KIELER setup file and register the local file path. This setup file is now obsolete. Please do not use it anymore and register the new one. You might also want to remove it from the list and delete the downloaded setup file but this will cause errors in all Eclipse installations created with this setup. Hence, be careful and don't force me to say: I told you so!

  5. Now Oomph lists a KIELER folder in <User>. Double-click on KIELER Pragmatics or KIELER Semantics to configure your setup. This will cause an item to appear in the table at the bottom of the window. The Stream column entry can be edited to choose on which state/branch you want to work. Once you're done, click Next.
    Image Added


  6. Oomph now asks you to enter some more information. You can usually leave the settings as is, except for the Installation folder name. This will be the directory under which all your Eclipse installations installed with Oomph will appear, each in a separate sub-directory. Select a proper directory and click Next.
    Image Added

    Info
    titleExternal Access

    If do not have a Bitbucket Account or you are in a situation where you cannot access our Git via SSH, you need to adjust the Git URL! Make sure Show all variables is checked and replace the  entry of KIELER Git URL by:

    No Format
    https://git.rtsys.informatik.uni-kiel.de/scm/
    Info
    titleBut... I Already Have Git Repositories

    By default, the Oomph setup will clone all required Git repositories for each Eclipse installation, which takes up disk space and results in unnecessary duplication. You can change that by changing the Git clone location rule to Located in the specified absolute folder location and then setting the locations for each cloned repository accordingly.

    Oomph will clone the repositories into the given folder, or use existing repositories.

    Info
    titleSeparate Installations?
    This is the part that veteran Eclipse developers will find strange. In the Oomph world, there is no one big Eclipse installation anymore. Instead, we simply use one installation for each project we're working on, completely self-contained in a folder that also contains the workspace and all required Git repositories. If something goes wrong, simply delete the whole folder and install a new Eclipse using Oomph.
    Having multiple Eclipse installations isn't even a problem in terms of disk space. Each installation is very lightweight, because all features and plug-ins used are saved in a centralized bundle pool (usually something like ~/.p2), which keeps each installation very small.
  7. Oomph now displays a summary of what will happen once you click Finish. Ignore it and click Finish.
  8. Once the basic installation is complete, your new Eclipse will start (at this point, you can safely close the Oomph dialog). Now, Oomph will try (and probably fail) to clone all required Git repositories. The Eclipse window will look something like this (once you've closed the Welcome page):
    Image Added
    Note the icon at the bottom with the error marker. It tells you that something went wrong during the Oomph setup.
  9. The problem is that Eclipse doesn't know which SSH key to use to clone the repositories. Go to the Eclipse preferences and navigate to General -> Network Connections -> SSH2. Add the private key you want to use to connect to our repositories and click OK.
    Image Added
  10. You will now need to retry the failed Oomph setup steps. Either click on the Oomph setup icon at the bottom of the Eclipse window (if it's still there), or select Perform Setup Tasks from the Help menu. The dialog shows the failed setup tasks. Click Back, Next, and Finish to retry them all.
    Image Added

Manual Installation (Deprecated)

If you want to install Eclipse on your own computer without using the Oomph setup, just expand the installation guide belowEclipse Installation Guide. Note that you need at least Java 1.5 to run and use Eclipse and KIELER. On Windows, double-click the eclipse.exe found in the installation directory. On Linux, execute the eclipse executable found in the installation directory. On second thought... Why would you want to do that? Spare yourself the trouble and just go with Oomph. In fact, we don't even know if the information below are still up-to-date. Probably not. Go with Oomph. Seriously.

Expand
titleClick here to expand the installation guide...

The first step in getting your own Eclipse installation is to download Eclipse Indigo 3Luna 4.74.21 from the Eclipse download page. The download page offers several different variants of Eclipse; you want the Eclipse Modeling Tools, as they come with most many of the features required for KIELER development already installed. Once Eclipse is installed and started, there are two ways you need to install the remaining features: the (recommended) automatic way, and the manual way.

Automatically Installing the Remaining Features

The automatic installation basically uses a description of our reference Eclipse installation to bring your own installation to the same state. Follow these steps:

  1. Download our reference installation file.
  2. In Eclipse, choose Import... from the File menu. The import wizard should be displayed.
  3. From the Install category, choose Install Software Items from File and click Next.
  4. As the description file, select the one you've just downloaded.
  5. The list should now display a bunch of features. Make sure they are all selected, except for the Eclipse Modeling Tools – your Eclipse download already had them.
  6. Make sure to disable the check box Install latest version of selected software. This might seem silly, but some of the plug-ins you're about to install don't play well with the latest versions of other plug-ins you're about to install.

  7. Click Next and wait for the wizard to collect all the installation details. This could take a while, so use the opportunity to visit your long-neglected relatives in New Zealand.

  8. Once your relatives have finished telling you how tall you've grown since they've last seen you, the wizard will ask you to review the changes that it will apply to your installation. Confirm them by clicking Next, accept the license agreements and click Finish. This could again take a while, so go out and finally do that thing you've always wanted to do since you were a child.

  9. Once you've finally done that thing and realized that it wasn't what you had expected, restart Eclipse and configure your installation according to our configuration guidelines.

Manually Installing the Remaining Features

If you have a problem with automatic installation procedures or the installation for some reason didn't work for you, install the required features manually:

  • Install Xpand/Xtend and Xtext Antlr via their update site.
  • Install Xtext and Xtend (in a newer version, which is installed alongside the old version) via their update site.
  • Install Checkstyle via its update site.
  • Install Find Bugs via its update site.
  • Install Google Guava via its update site. Make sure to install version 10.0.1 of the Runtime and SDK; Xtext 2.2.1 doesn't work with version 11 of the libraries.
  • If you need SVN access, install Subversive via its update site (from the Subversive SVN Team Provider Plugin (Incubation) category, choose Subversive SVN Team Provider (Incubation)). For some reason, the version of Subversive bundled with the current Eclipse release is too old for the current versions of the SVN connector plug-ins required to actually use Subversive. If you don't install a more recent version, a dialog will always pop up when starting Eclipse asking you to install a proper SVN connector, which will always fail due to unsatisfied dependencies.
  • fter

    . For each of these steps, fire up the software installation dialog by clicking Install New Software... from the Help menu.

    1. From the Luna update site (should already be in the Work with list), choose the following components:
      1. Xtext Complete SDK
      2. MWE 2 language SDK
      3. MWE 2 runtime SDK
    2. If you are going to be working in the Semantics project, you may also have to install the following from the Luna update site:
      1. Xpand SDK
      2. MWE SDK

    Now open up the Eclipse Marketplace from the Help menu and install the following plug-ins:

    1. Checkstyle Plug-in
    2. FindBugs Eclipse Plugin

    After everything is installed, restart Eclipse and configure your installation according to our configuration guidelines.

    Esoteric

    If you are in charge of creating a new reference target platform, make sure to consider the (info) below.

    Optional Dependencies

    Some projects require a bunch of more esoteric dependencies. For each one of them, make sure you actually work with a given project and then install the required dependencies only if necessary.

    1. Some plug-ins use the Graphiti framework, which can be installed from this update site.
    2. Required for KEV: Install the missing Batik Swing plug-in SVG export functionality is based on the Batik Swing feature  from the Orbit update site. Make sure to install version 1.6 of the plug-in, not version 1.7.The ...kiml.zest plug-in depends on the Zest Visualization Toolkit SDK, which can be found on the Indigo update site..
    3. If you want to work on the Graphiti integration of KIELER Layout, install the Graphiti SDK Plus (info) from the Kepler update site.
    4. If you want to work on KlighDning (info), install the Jetty bundles from the Jetty update site. Currently we are using version 8 (which should be included in the Luna Release).
    5. If you want to work on KWebS (info), install the JAX-WS Tools from the Kepler update site.
    6. If you're interested in e4 application development, install the following from the e4 update site: (If you don't know what e4 application development is, odds are you won't need these.)
      1. Eclipse e4 Tools (Incubation)
      2. We originally also installed E4 CSS Spy (Incubation), but it installed keyboard shortcuts that somehow conflicted with Eclipse's built-in ones. This lead to common shortcuts such as Ctrl+Z and Ctrl+Space not working properly, which is why we don't install the CSS Spy for the time being.
    7. If you use some code from Subversion repositories, install the Subversive SVN Team Provider from the Kepler update site. You will be prompted to install a Subversive Connector upon restarting Eclipse; select one that fits to your installed SVN version. KIELER does not use Subversion anymore.
    8. Some plug-ins require Papyrus to be installed, which is available via the Indigo update site.you should probably simply google for.
    9. Some deprecated dependencies (we don't work with these frameworks anymore):
      1. Graphical Editing Framework Zest Visualization Toolkit SDK
      2. Graphical Modeling Framework (GMF) Notation SDK
      3. Graphical Modeling Framework (GMF) Tooling SDK

    Memory Problems

    Regardless of the two methods you've decided on following, Eclipse may well run into problems due to lack of memory. If so, navigate to your installation directory, open eclipse.ini, and edit it to contain the following lines:

    Code Block
    languagenone
    titleEclipse Configuration
    --launcher.XXMaxPermSize 256M
    --launcher.XXPermSize 64M
    -Xmn128m
    -Xmx768m

    For more information about what these settings to, see this page.