Prerequisites

Windows

The following software has to be installed locally:

Then make sure that the JAVA_HOME environment variable is set and points to your JDK installation.

See also

Windows only: Add the JDK installation directory to your JAVA_HOME user environment variable:

  1. open the system properties (WinKey + Pause or go to SettingsSystemAboutSystem InfoAdvanced System Settings)

  2. select the Advanced tab, then the Environment Variables button

  3. select and edit the JAVA_HOME variable in the user variables, e.g., adding C:\Program Files\Java\jdk-13.0.2.

Linux

The examples were tested under Ubuntu 18.04 using JDK 15 and Maven 3.6.0.

Note

During testing we noticed that there are several incompatibilities between the different Java and Maven versions. Therefore, a bit of trial and error might be required to get it running on a different system.

Getting the JDK

sudo add-apt-repository ppa:linuxuprising/java

sudo apt update

sudo apt install oracle-java15-installer

If you want to set up the new installed java as the default, you can also install the following package:

apt-get install oracle-java15-set-default

This will configure the required environment variables using a profile.d configuration file.

Note

Different shell applications handle profile.d differently. In the case of zsh the profile.d configuration path is not loaded at all. Therefore, the following lines should be added to your .zshrc file.

#JAVA PATHS
export J2SDKDIR=/usr/lib/jvm/java-15-oracle

export J2REDIR=/usr/lib/jvm/java-15-oracle

export PATH=$PATH:/usr/lib/jvm/java-15-oracle/bin:/usr/lib/jvm/java-15-oracle/db/bin

export JAVA_HOME=/usr/lib/jvm/java-15-oracle

export DERBY_HOME=/usr/lib/jvm/java-15-oracle/db
Getting Maven

apt-get install maven
Getting Mosquitto

sudo apt-get install mosquitto

Installation

Step II: Starting the configuration server

Start the configuration server by executing script run_config.cmd in subfolder scripts/0_config. For Linux, use the run_config.sh script. This will make the content of database file examples-config.db available via http://localhost:10101.

Note

Once the server is running, you can view the available configurations in a web browser via http://localhost:10101, see below.

Lablink examples: stored configurations.

See also

A convenient tool for viewing the content of the database file (and editing it for experimenting with the examples) is DB Browser for SQLite.