From 448a00eff88fcfcf83f005b47910fd583f02b4f3 Mon Sep 17 00:00:00 2001 From: Anry Das Date: Wed, 19 Mar 2025 16:29:09 +0200 Subject: [PATCH 1/2] Updates run.* scripts. Updated README.md --- NovaPoshta/README.md | 6 ++++-- NovaPoshta/run.cmd | 3 ++- NovaPoshta/run.sh | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) 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 & From d7278803c0ac6555a0a0fbf997e2db190fc2a8af Mon Sep 17 00:00:00 2001 From: Anry Das Date: Wed, 19 Mar 2025 16:29:39 +0200 Subject: [PATCH 2/2] Updates run.* scripts. Updated README.md --- NovaPoshta/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NovaPoshta/README.md b/NovaPoshta/README.md index 490aa9c..aa6e615 100644 --- a/NovaPoshta/README.md +++ b/NovaPoshta/README.md @@ -28,7 +28,7 @@ You can download archive from [Releases section](https://github.com/anrydas/Nova Find full application's documentation at: [Ukrainian](help/uk/help.md) and [English](help/en/help.md). ### 🚀 Launch 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/
+If you haven't the JavaFX you need to install it from [https://gluonhq.com/products/javafx/](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