I need to create a .exe
file for my project. I have a launcher and 5 applications. Applications are launched using the launcher applications. How can I collect the entire project into 1 executing file and run it using it? My project built on Gradle.
What are the ways to solve my problem?
The recommended way to do this for modern JavaFX applications is to use jpackage which comes with JDK 14. Don't try executable jars. They won't work in general.
If you have to, you can use JDK 14+ just for jpackage but bundle your app with any JDK 11+. Just have a look here for a tutorial: https://github.com/dlemmermann/JPackageScriptFX