Skip to content
afla edited this page Oct 25, 2016 · 7 revisions

Setup

Note: /home/alex/reconfigurator is an example base folder. Feel free to place your files wherever you like.

1. Prerequisites

1.1. Install the prerequisites: Git and the Java Development Kit.

    $ apt-get install git default-jdk

1.2. Go to the base folder.

    $ cd /home/alex/reconfigurator

2. Eclipse

2.1. Download, extract and launch Eclipse IDE for Java and DSL Developers. This version of Eclipse has support for Xtend. Also add a workspace folder.

    $ wget -O eclipse-dsl-neon-1a-linux-gtk-x86_64.tar.gz "http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/neon/1a/eclipse-dsl-neon-1a-linux-gtk-x86_64.tar.gz&r=1"
    $ tar -xf eclipse-dsl-neon-1a-linux-gtk-x86_64.tar.gz
    $ mkdir workspace
    $ eclipse/eclipse &

2.2. Set the /home/alex/reconfigurator/workspace as the default workspace.

3. C-Reconfigurator

3.1. Download the C-Reconfigurator source.

    $ mkdir c-reconfigurator
    $ git clone https://github.com/models-team/c-reconfigurator.git c-reconfigurator

3.2. Launch or go to Eclipse.

    $ eclipse/eclipse &

3.3. Create a new Java Project.

  1. Press Shift+Alt+N and select Java Project.
  2. Write reconfigurator into the "Project name" textbox.
  3. Click the "Finish" button.

3.4. Convert to Xtext project.

  1. Right-click the reconfigurator project, select the "Configure" menu and click the "Convert to Xtext Project" button.
  2. Right-click the reconfigurator project, select the "Build path" menu and click the "Add Libraries" button.
  3. Select "Xtend Library", click the "Next" button, click the "Finish" button.

3.5. Set up the source folder.

  1. Expand the reconfigurator project.
  2. Right-click on the src folder and click the "Delete" button. Then click the "OK" button to confirm.
  3. Right-click the reconfigurator project, select the "Build Path" menu and click the "Link Source" button.
  4. Write /home/alex/reconfigurator/c-reconfigurator/src into the "Linked folder location" textbox.
  5. Write src into the "Folder name" textbox.
  6. Click the "Finish" button.
  7. Let Eclipse build the project.

3.6. Add required jars.

  1. Right-click the reconfigurator project, select the "Build Path" menu and click the "Add External Archives" button.
  2. In the pop up navigate to /home/alex/reconfigurator/c-reconfigurator/libs.
  3. Select all files and click the "OK" button.
  4. Let Eclipse build the project.
Clone this wiki locally