JavaFX .exe file Failed due to exception in main class

前端 未结 1 1836
逝去的感伤
逝去的感伤 2021-01-25 21:55

I developed an JavaFX application and used the native packaging tool (incl. Inno Setup 5 and WiX) to create .exe files and installers. The program is a self-containing applicati

相关标签:
1条回答
  • 2021-01-25 22:43

    Found out myself: 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.

    Obviously some of the operating systems I used to install the tool did not have the correct Java setup (it is not about classpath settings, I checked that beforehand too) so the VM crashed before being able to instantiate the tool and therefore my custom error logger.

    After removing the error causing VM params (parameters for debugging, security manager and the location of the policy file) it worked on all Windows platforms (7/8/10) as it should.

    0 讨论(0)
提交回复
热议问题