Skip to content

How to Setup the Eclipse IDE (with SGX Plugin)

Mats edited this page Mar 29, 2020 · 9 revisions

Eclipse is used for SGX application development under Linux. In this manual we will describe how to install the IDE and the Intel SGX plugin.

πŸ’» Eclipse IDE

Since Eclipse is a Java application, we have to install the Java Development Kit:

  • sudo apt-get install default-jdk

After this we have to download the C/C++ Eclipse Package on the following page:

Screenshot 2020-02-23 at 00 45 25

When the download is completed, we'll get a .tar.gz archive. In the directory into which we downloaded the archive, we can unpack the archive by running the following command.

  • tar xfvz <eclipse.tar.gz>

Now we will move the unzipped eclipse folder into the home folder of the current user.

  • mv ~/Downloads/eclipse ~/eclipse

Afterwards we can run eclipse with the following command:

  • ~/eclipse/eclipse

πŸ”Œ Eclipse Intel SGX Plugin

Development of SGX applications needs some extensions for default eclipse application. Therefore an Eclipse plugin is existing. This plugin can be downloaded at the SGX download center:

❗ Note: In the meantime Linux SGX version 2.9 has been released. It is possible that the manual also applies to version 2.9. However, the manual has been tested with version 2.8.

Screenshot 2020-02-23 at 11 26 34

❗ Note: The official installation guide states that we have to compile the eclipse plugin manually. We can skip this part, due to the fact that we are using the pre compiled plugin file, mentioned above.


After the download is complete, we will add the plugin to eclipse by clicking Help -> Install New Software ...

Screenshot from 2020-02-23 13-39-19


In the following window, we will click on the Add ... Button to select our local plugin archive.

Screenshot from 2020-02-23 13-34-55


As already mentioned, we have the plugin available as an archive, so we click on Archive ....

Screenshot from 2020-02-23 13-35-09


Now we will define a name for this plugin and choose our downloaded .zip file.

Screenshot from 2020-02-23 13-35-25


Then we will click Add and select the Intel(R) SGX Eclipse Plugin. We confirm this selection with a click on the Next > Button.

Screenshot from 2020-02-23 13-35-34


Afterwards we will click again Next > and accept the License Agreement. After finishing the assistant, a security warning will appear. This occurs because some components of the plugin are not signed. We will continue by clicking Install anyway.

Screenshot from 2020-02-23 13-35-53


At the bottom of Eclipse we can see a progress bar, which will indicate the installation progress. After finishing we will prompted to restart the IDE.


After restarting the IDE, we have to validate the correct Intel SGX SDK path by clicking Window -> Preferences.

Screenshot from 2020-02-23 14-03-11


By selecting Intel(R) SGX Preferences on the left side we are able to check whether the entered SDK path is correct or not. Screenshot from 2020-02-23 13-36-51


The installation is completed with the verification of the path specification.

Clone this wiki locally