Course project built for the Ohjelmointiprojekti TX00CD79-3014 course at Metropolia UAS.
Access to a MariaDB instance is required for running this application.
# Set required environment variables
# (On Windows: export => set)
export DB_HOST=localhost
export DB_PORT=3306
export DB_USERNAME=root
export DB_PASSWORD=password
# Run the application
java -jar assembly-robot-simulator.jar
Should you at any time wish to reset all stored settings of the simulator (Note: This includes the database!), you can supply the FRESH_INSTALL
environment variable.
In development environments, environment variables can be set via the IntelliJ Run Configurations menu (Run -> Edit Configurations -> Application -> Environment Variables -> Click the "$" or type manually
).
Running of this project requires JavaFX to be installed:
- Download the JavaFX SDK (The project uses version 15.0.1) and extract to a path of your choosing
- In IntelliJ, open Project Structure (
Ctrl + Alt + Shift + S
) - Go to
Project Settings -> Libraries -> + -> Java -> Select JavaFX SDK extraction path
- Go to
Run -> Edit Configurations -> Application -> Modify Options -> Tick 'Add VM options'
- Set the following VM options:
--module-path "path\to\javafx-sdk-15.0.1\lib" --add-modules javafx.controls,javafx.fxml
MSI and EXE workloads with JPackage require the WiX Toolset to be installed.