B4J Question I cannot execute the Released Jar file (JAVA 8)


Licensed User
Longtime User
Hi all,

I'm opening this thread because I cannot execute a jar file after compiling as Release mode:

1. I need to use Java 8 due to some compatilibites issues with external devices. I cannot use Java 11.

2. In Release mode, when I compile and execute the program from B4J, it works. But, when I try to execute it from the executable JAR file created in the Objects folder, i'm getting the error that you can find in the image attached.

Error: Exception in thread "main" Exception in thread "JavaFX Application Thread" java.lang.reflect.InvocationTargetException and more... (picture attached)

Can anyone help me here?

Thank you


  • Error Executing.png
    Error Executing.png
    31.2 KB · Views: 150


Licensed User
Longtime User
1. Is it a UI app?
2. Make sure that #MergeLibraries is not set to False.
Hi Erel,

It works now! Only in one of my machines, but it works. I'll keep figuring out why not on others, it seems to be a code or compatilibities issue for these machines.

Thank you as usual!
Upvote 0