.exe file Failed due to exception in main class

风格不统一 提交于 2019-12-12 18:39:27

问题


I made an app using javafx and packaged it as exe file. It works fine being started from eclipse but being installed it says

Failed due to exception in main class

no matter what pc it was started at. I've found a few same questions but everyone found solution by themselves but don't tell how. One question has an answer:

the issue were VM parameters I added in the build.xml in the fx:platform / fx:jvmarg section. These params were put into the package.cfg file which is called from the .exe file to initialize the VM.

In my build.xml there is only one string related to the named fx:platform But in my case there is only <fx:platform basedir="${java.home}"/> and nothing else. What am I doing wrong?

来源:https://stackoverflow.com/questions/35087423/exe-file-failed-due-to-exception-in-main-class

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!