I've created my Application in JavaFX. Everything works well, so I use the Jpackage to make a installable version of my application in Window.
After I install the package, the window computer still ask to install JVM.
jpackage -t exe --name "FReport" --description "Time reporting" --app-version 1.0 --input "C:\myapp" --dest "C:\myapp\out" --main-jar "freport.jar" --module-path "C:\Program Files\Java\javafx-sdk-17.0.1\lib" --add-modules javafx.controls,javafx.fxml --win-shortcut --win-menu
My expectation, that I can use Jpackage to install my JavaFX application on any computer and it automatically setup the JVM ..etc. The user just have to click on the icon and run the application.
Any suggestion on the correct command in Jpackage to pack my JavaFX application jar file with all the require environment like JVM ..etc