How to debug problems with native javafx package for windows?

I am trying to pack a JavaFX / DukeScript application in my own packages. For Windows, which was achieved using Inno Setup, this is what javafxpackager uses. I can not find a lot of documentation about this, so I will create a question and give the answers that I find below.

Related questions: 1 , 2 , 3 , 4

+2
source share
1 answer

So, I created the build.xml Ant script file using the e (fx) clip (see example here ). I followed this great blog post . Now the work with the package worked and created the installer and the executable application. I am having problems starting the application and I don’t see the stack trace. So, here's how to display a window with a stack trace when you run the executable from the command line:

 goGPS_FX.exe /Debug

This causes a stack trace popup. In my case, there was no error in the bank. Therefore, for testing, I manually added this jar under deploy\bundles\goGPS_FX\app\libs.

JavaFX app\package.cfg. , JavaFX, Inno Setup. , . , , app.classpath, . app.mainclass. , :

app.mainclass=org/gogpsproject/GoGPS_Fx

, . :

jvmarg.1=-Djavafx.verbose=true

, jvm, .

+3

All Articles