我已经制作了一个javafx应用程序。出于OCR目的,我使用了JNA。当我尝试生成.dmg或.exe文件时,构建成功但由于以下错误,它不会生成.dmg或.exe:
The jar libs/jna.jar has a main class com.sun.jna.Native that does not match the declared main xx.xxxxx.xxx.MainAppClass
The jar libs/jna.jar has a main class com.sun.jna.Native that does not match the declared main xx.xxxx.xxx.MainAppClass
Bundler DMG Installer skipped because of a configuration problem: Main application jar is missing.
Advice to fix: Make sure to use fx:jar task to create main application jar.
BUILD SUCCESSFUL
我该如何解决?