Skip to content
Advertisement

Created .exe from jpackager crashes

I have a JavaFX Project, which I want to export as a dmg and exe. The export as a dmg file for Mac was no problem. But the export as a .exe file for Windows is not working. I created a jar file and I ran jlink. Then I exported the project with jpackage. Here is the command:

JavaScript

On my machine, it is working perfect, but on others (I tested it on two more machines (they do not have Java(FX) installed)) the CMD window crashes instantly.

Advertisement

Answer

After a lot of research, I found a GitHub repo which shows how to create dmg and exe files. Maven jPackage Template

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement