-
Notifications
You must be signed in to change notification settings - Fork 2
Setup
afla edited this page Oct 25, 2016
·
7 revisions
Note: /home/alex/reconfigurator is an example base folder. Feel free to place your files wherever you like.
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.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.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.
- Press Shift+Alt+N and select Java Project.
- Write reconfigurator into the "Project name" textbox.
- Click the "Finish" button.
3.4. Convert to Xtext project.
- Right-click the reconfigurator project, select the "Configure" menu and click the "Convert to Xtext Project" button.
- Right-click the reconfigurator project, select the "Build path" menu and click the "Add Libraries" button.
- Select "Xtend Library", click the "Next" button, click the "Finish" button.
3.5. Set up the source folder.
- Expand the reconfigurator project.
- Right-click on the src folder and click the "Delete" button. Then click the "OK" button to confirm.
- Right-click the reconfigurator project, select the "Build Path" menu and click the "Link Source" button.
- Write /home/alex/reconfigurator/c-reconfigurator/src into the "Linked folder location" textbox.
- Write src into the "Folder name" textbox.
- Click the "Finish" button.
- Let Eclipse build the project.
3.6. Add required jars.
- Right-click the reconfigurator project, select the "Build Path" menu and click the "Add External Archives" button.
- In the pop up navigate to /home/alex/reconfigurator/c-reconfigurator/libs.
- Select all files and click the "OK" button.
- Let Eclipse build the project.