I built in IntelliJ IDEA my javaFX application as jar file. Using "Project Structure >> Artifacts >> + JavaFX Application" I can build .app, .dmg, .pkg, .exe with JRE included. But I need build same files without JRE bundled. Sure, I can use JAR, but I want to make my own icon and maybe installer.
I also tried to create .app folder from jar to execute it manually "java -jar myJarName.jar" , but if I have several JDK version - it always uses the latest (JRE 11) which not included javaFX library and my .app doesn't work. But if I run the same JAR with Jar Launcher.app it works perfectly. Somehow it chooses the right jre version. ExcelsiorJet, install4j and similar apps work well, but my project is OpenSource and I can not pay 3000$ for this.
The question is - how can I build MacOs/Windows native launcher app/dmg/pkg/exe without JRE bundled for users who already have JRE installed? Can I use IntelliJ IDEA to build this a way as I built with jre bundled?
