Setting up the Kura Development Environment

This document describes how to set up the development environment for Eclipse Kura, which consists of the following components:

  • JVM (Java JDK SE 8 or Open JDK 8)
  • Eclipse IDE
  • Kura Workspace setup

The Kura development environment may be installed on a Windows, Linux, or Mac OS. The setup instructions will be the same across OSs though each system may have unique characteristics.


The local emulation of Kura code is only supported in Linux and Mac, not in Windows.

JVM Installation

Download and install Java SE from Java SE Downloads. Use the latest version of Java SE Development Kit and download the version appropriate for your system.

For additional information regarding the installation of Java 8 on all supported operating systems, see JDK 8 and JRE 8 Installation Guide.

Eclipse IDE

The Eclipse IDE is an open source development tool that consists of an integrated development environment (IDE) and a plug-in system for managing extensions.

For automated installation see Oomph installer below.

Installing Eclipse

Before installing Eclipse, you should choose directory locations for the Eclipse install and its workspaces.


The following points should be kept in mind regarding Eclipse installs and workspaces:

  • The directory location of the Eclipse workspaces should be chosen carefully. Once Eclipse is installed and workspaces are created, they should never be moved to another location in the file system.
  • There may be multiple installs of Eclipse (of different or similar versions), and single instances of each install can be run simultaneously; but there should never be more that one instance of a specific install running at the same time (to avoid corruption to the Eclipse environment).
  • Each workspace should be used with only one Eclipse install. You should avoid opening the workspace from more than one installation of Eclipse.
  • For the purposes of this guide, only a single Eclipse installation will be covered.

Download the current distribution of Eclipse for your OS from the Eclipse download site. Choose the Eclipse IDE for Java EE Developers.

The zipped Eclipse file will be downloaded to the local file system and can be saved to a temporary location that can be deleted after Eclipse has been installed. After the file has been downloaded, it should be extracted to the Eclipse installs directory. The following screen capture shows the installation in Linux using an eclipse/installs/ directory. The Eclipse executable will then be found in the “eclipse\installs\eclipse" directory. This installation will be different depending on the operating system.

Image 1

Because there may potentially be future Eclipse installs extracted into this location, before doing anything else rename the directory, such as to “eclipse/installs/juno1/”. Once you begin using this Eclipse install, it should not be moved or renamed later. Image 2

Installing mToolkit

An additional plugin, mToolkit, is needed to allow remote connectivity to an OSGi framework on a Kura-enabled target device. To install mToolkit into Eclipse, use the following steps:

  • Open the Help | Install New Software… menu.
  • Add the following URL as an update site based on your version of Eclipse
    • Eclipse Mars and older:
    • Eclipse Neon:
  • Install the “mToolkit” feature (you need to uncheck the Group items by category checkbox in order to see the feature)
  • Restart Eclipse. In the menu Window | Show View | Other, there should be an mToolkit | Frameworks option. If so, the plugin has been installed correctly.


For automated installation see Oomph installer below.

Creating an Eclipse Workspace

Run Eclipse by clicking its executable in the install directory.

When Eclipse is run for the first time, a workspace needs to be created. A single workspace will contain all the Java code/projects/bundles, Eclipse configuration parameters, and other relevant files for a specific business-level product. If the Use this as the default option is selected, the designated workspace becomes the default each time you run Eclipse.

If a workspace has not already been defined, or if you are creating a different workspace for another development project, enter a new workspace name. The workspace should be named appropriate to the project/product being developed.


Once you begin using a particular workspace, it should not be moved or renamed at any time.

Image 3

Otherwise, select an existing workspace and click OK. After Eclipse is running, you can select the Eclipse menu File | Switch Workspace | Other to create or open a different workspace.

After the new workspace opens, click the Workbench icon to display the development environment.

Image 4

Importing Kura User Workspace

To set up your Kura project workspace, you will need to download the Kura User Workspace archive.

From the Eclipse File menu, select the Import option. In the Import dialog box, expand the General heading, select Existing Projects into Workspace, and then click Next.

Now click the Select archive file option button and browse to the archive file, such as

Image 5

Finally, click Finish to import the projects. At this point, you should have four projects in your workspace. The four projects are as follows:

  • org.eclipse.kura.api – This is the core Kura API.
  • org.eclipse.kura.demo.heater – This is an example project that you can use as a starting point for creating your own bundle.
  • org.eclipse.kura.emulator – This is the emulator project for running Kura within Eclipse (Linux/Mac only).
  • target-definition – This is a set of required bundles that are dependencies of the APIs and Kura.

Image 6

Eclipse will also report some errors at this point. See the next section to resolve those errors.

Workspace Setup

Click the arrow next to the target-definition project in the workspace and double-click to open it.

Image 7

In the Target Definition window, click the link Set as Target Platform. Doing so will reset the target platform, rebuild the Kura projects, and clear the errors that were reported. At this point, you are ready to begin developing Kura-based applications for your target platform.

Run the Eclipse Kura Emulator

To start the Eclipse Kura emulator, select the “Kura_Emulator_Linux.launch” or “Kura_Emulator_OSX.launch” profile from “org.eclipse.kura.emulator” project -> “launch_configs” -> “Kura_Emulator_[OSX Linux].launch” and run it with “Run as”.

The Eclipse Kura Web UI will be available at the following URL: with username and password admin.

Eclipse Oomph installer

The Eclipse Oomph installer is an easy way to install and configure the Eclipse IDE to start developing on Kura. Download the latest Eclipse Installer appropriate for your platform from Eclipse Downloads

  • Start the Eclipse Installer
  • Switch to advanced mode (in simple mode you cannot add a custom installer)
  • Select “Eclipse IDE for Eclipse Committers”, select the latest “Product Version” and select a Java 11+ VM. Then click the Next button.

Image 8

  • Select “Eclipse Kura” project under the “Eclipse Projects” menu. If it isn’t available, add a new installer by URL: under the “Github Projects” menu. Then click the Next button.

Image 9

  • Update Eclipse Kura Git repository’s username (prefer the anonymous HTTPS option, link to your fork) and customize further settings if you like (e.g. Root install folder, Installation folder name). Then click the Next button.
  • Leave all Bootstrap Tasks selected and press the Finish button.
  • Accept the licenses and unsigned content.
  • Wait for the installation to finish, a few additional plugins will be installed.
  • At first startup Eclipse IDE will checkout the code and perform a full build.

The result will be an Eclipse IDE with all the recommended plug-ins already available, code will be checked out and built, workspace will be set up, a few Working Sets will be prepared with most projects building without errors.

The next step is to get the rest of the projects to build, for which you might need to build them in the console with specific profiles available e.g. the CAN bundle.

Run the Eclipse Kura Emulator

To start the Eclipse Kura emulator, select the “Eclipse Kura Emulator.launch” profile from “Other Projects” -> “setups” -> “launchers” and open it with “Run as” -> “Run Configurations…”. Then click on the “Arguments” tab and update the “VM arguments” as follows to adapt the paths to the folder structure created by the Oomph installer: -Dosgi.clean=true -Dosgi.noShutdown=true -Declipse.ignoreApp=true  -Dorg.eclipse.kura.mode=emulator -Dkura.configuration=file:${workspace_loc}/../git/kura/kura/emulator/org.eclipse.kura.emulator/src/main/resources/ -Ddpa.configuration=/tmp/kura/ -Dlog4j.configurationFile=file:${workspace_loc}/../git/kura/kura/emulator/org.eclipse.kura.emulator/src/main/resources/log4j.xml${workspace_loc}/kura/data -Dkura.snapshots=${workspace_loc}/kura/user/snapshots -Dorg.eclipse.equinox.http.jetty.customizer.class=org.eclipse.kura.jetty.customizer.KuraJettyCustomizer

Image 10

The Eclipse Kura Web UI will be available at the following URL: with username and password admin.