A simple PoC app that uses JavaFX (11) and Java Modules (JPMS) on Raspberry Pi. The application shows the current temperature provided by the DS18B20 temperature sensor.
In order to launch a JavaFX application, Java and JavaFX must be installed. See the installation script.
It is important to install
artifacts in the local maven repository. These artifacts will be used for launching the app using e.g. layryy:
mvn clean install
As a Java modular application:
Go to <project-location>/app/target
directory and execute:
java --module-path /home/pi/armv6hf-sdk/lib --add-modules=javafx.controls,javafx.web -jar /home/pi/app-1.0-SNAPSHOT-jar-with-dependencies.jar
Using layrry:
Go to the <project-location>/layrrylauncher/launcher
directory and execute:
java --module-path /home/pi/armv6hf-sdk/lib --add-modules=javafx.controls,javafx.web -jar layrry-launcher-1.0-SNAPSHOT-all.jar --layers-config layers.toml