Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fjossinet/rpiboilerplate
A boilerplate project to easily get a JavaFX app running on a Raspberry Pi.
https://github.com/fjossinet/rpiboilerplate
Last synced: 14 days ago
JSON representation
A boilerplate project to easily get a JavaFX app running on a Raspberry Pi.
- Host: GitHub
- URL: https://github.com/fjossinet/rpiboilerplate
- Owner: fjossinet
- Created: 2020-11-18T12:31:11.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-18T12:42:18.000Z (about 4 years ago)
- Last Synced: 2024-11-06T12:19:23.592Z (2 months ago)
- Language: Java
- Size: 8.89 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## A JavaFx-Kotlin boilerplate for Raspberry Pi ##
A boilerplate project to easily get a JavaFX app running on a Raspberry Pi. The app has a programmatic access to the low-level hardware I/O capabilities (thanx to the Pi4J v2 library) and can be extended with the Kotlin language.
This project has been developed and tested with the RaspberryPi OS (Raspbian GNU/Linux 10 (buster)) running on a Raspberry Pi 4B 4Go board.
### Prerequisites for your RaspberryPi OS
* JDK >= 11 (to be installed: sudo apt install openjdk-11-jdk)
* the maven tool (to be installed: sudo apt install maven)
* Pi4J v2 (automatically installed with maven from file pom.xml)
* openJavaFX >=16 from Gluon (to be installed: see below)
* Kotlin (automatically installed with maven from file pom.xml)### Installation
On your Raspberry Pi, a JDK >= 11 and the tool maven have to be installed.During the assembly step, maven packages the linux SDK for JavaFX instead of the ARM one. Consequently, the pom file removes those dependencies and copies the SDK that should be stored in the assets/javafx/arm directory. You can download the ARM SDK from the [Gluon Downloads page](https://gluonhq.com/products/javafx/). This project provides version 16-ea of the JavaFX Linux/arm32-drm SDK.
Once everything installed, from the project root dir, type: mvn clean package
### Running
From the project dir, type : sudo -E ./target/distribution/run.sh