diff --git a/NovaPoshta/README.md b/NovaPoshta/README.md index 8213775..490aa9c 100644 --- a/NovaPoshta/README.md +++ b/NovaPoshta/README.md @@ -27,8 +27,10 @@ That it. You can download archive from [Releases section](https://github.com/anrydas/NovaPoshta/releases) or clone the repository. Find full application's documentation at: [Ukrainian](help/uk/help.md) and [English](help/en/help.md). ### 🚀 Launch -The application's distribution included run.cmd or run.sh depended on your OS. Just launch it. -Note: run.* script need to `JAVA_HOME` environment variable. If it doesn't provided made changes into script to include full path to JRE. +First you need to set the `JFX_PATH` variable as full path to JavaFX in provided `run.*` script.
+If you haven't the JavaFX you need to install it from https://gluonhq.com/products/javafx/
+The application's distribution included run.cmd or run.sh depended on your OS. Just launch it.
+Note: `run.*` script need to `JAVA_HOME` environment variable. If it doesn't provided made changes into script to include full path to JRE. ### 📜 Main Window
![Main Window](help/images/main.png) diff --git a/NovaPoshta/run.cmd b/NovaPoshta/run.cmd index 5a7ef13..e1dce40 100644 --- a/NovaPoshta/run.cmd +++ b/NovaPoshta/run.cmd @@ -1 +1,2 @@ -start %JAVA_HOME%\bin\javaw.exe -jar NovaPoshta.jar +JFX_PATH=full_path_to_jfx +start %JAVA_HOME%\bin\javaw.exe --module-path %JFX_PATH%\lib --add-modules javafx.controls,javafx.fxml -jar NovaPoshta.jar diff --git a/NovaPoshta/run.sh b/NovaPoshta/run.sh index 7ce62b4..4463eb5 100644 --- a/NovaPoshta/run.sh +++ b/NovaPoshta/run.sh @@ -1,2 +1,3 @@ #!/bin/bash -${JAVA_HOME}/bin/java -jar NovaPoshta.jar & +JFX_PATH=/full/path/to/jfx +${JAVA_HOME}/bin/java ${JFX_PATH}/lib --add-modules javafx.controls,javafx.fxm -jar NovaPoshta.jar &