问题
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