JNA的主类与声明的Main不匹配

时间:2015-07-09 20:42:56

标签: java eclipse jar javafx-8 jna

对于OCR功能,我使用过jna.jar。当我尝试生成.dmg或.exe [在Eclipse]文件中时,构建成功但由于以下错误,它不会生成.dmg或.exe:

The jar libs/jna.jar has a main class com.sun.jna.Native that does not match the declared main xx.xxxx.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

我该如何解决?

0 个答案:

没有答案