Search code examples
javajavafxnative-code

Java unable to determine Application class


I have developed an application using JavaFx and compiled it to native code using ExcelsiorJet. During compilation everything works fine even when I make test run. But after compilation I am receiving this exception:

Exception in thread "main" java.lang.RuntimeException: Error: unable to determine Application class
at Unknown.<unknown>(Unknown Source)
at Unknown.<unknown>(Unknown Source)
at Unknown.<unknown>(Unknown Source)
at Unknown.<unknown>(Unknown Source)

I can't figure out why? Does anybody met with this kind of issue?


Solution

  • I have accidentally solved this problem. The problem was not in code.

    Solution: When I was configuring ExcelsiorJet to compile, on the "Stack trace support" combobox of the TARGER page I have selected "None" and this was my problem. When I have selected "Minimal" everything worked.

    I have no idea why it was not compiling using "None" option.