Skip to content

Development environment setup

witjon edited this page Jun 15, 2022 · 3 revisions

Note: This project can only be properly developed in the Lernstick OS environment, as the software architecture relies on OS dependencies to be able to build the software project.

Requirements

You can find the Lernstick ISO on: https://www.digitale-nachhaltigkeit.unibe.ch/dienstleistungen/lernstick/downloads/index_ger.html

(or as a direct download)

Lernstick VM Setup

Note: Make sure that you have enough disk space for development, e.g. 32+ GB

A guide for this can be found here.

Cloning repositories

Clone the following repositories into your user folder:

Install development software

Once you're up and running, make sure to install NetBeans IDE 12.x and JavaFX Scene builder with Apache NetBeans 12.x

https://netbeans.apache.org/download/index.html

You may need the following commands to install it:

cd Downloads
chmod +x Apache-NetBeans-12.6-bin-linux-x64.sh
./Apache-NetBeans-12.6-bin-linux-x64.sh

Configure development environment

  1. Open NetBeans

  2. Import all of the pulled repositories as a project

  3. Build lernsticktools, jbackpack and then DebianLiveCopy

  4. Import dependencies to DebianLiveCopy of lernsticktools & jbackpack (!)

  5. Open Project storage-media-management

  6. Navigate to Libraries → right click → Add Library...

  7. Create...

  8. Name the new library openjfx → ok

  9. Add JAR/Folder → Navigate to /usr/share/java and select every javafx file → press Add JAR/Folder

  10. Ok

  11. At the Windows "Add Library" select your created library and click Add Library

  12. Select Project DebianLiveCopy → right click → Properties

  13. Select Libraries and add the openjfx library at the part "run" and "compile" like the picture below

  14. Select Run in the right and add by VM Options : --add-modules javafx.controls,javafx.fxml