B4J Question [SOLVED] Do I have to B4JPackager on jar files on my dev machine to be able to run them with "java -jar" on my dev machine?


Licensed User
Longtime User
Hi there

1. I have jdk 11


2. I then build my app with B4JBuilder - output good and I have a jar.

3. Now I need to test the app, however run it from the command line, so I fire this command from the objects folder where the jar file is.

C:\jdk-11.0.1\bin\java.exe -jar C:\app1\B4J\Objects\Code.jar

4. This is the output I'm getting..

Error: JavaFX runtime components are missing, and are required to run this application

So Id like to find out whether I need to first run the package manager on the jar before I can test on my dev machine or I missed something?

If I have to use the package manager, can it be done via the command line?

Thanks in advance.
Hi there... can you try:

javaw --module-path C:\jdk-11.0.1\javafx\lib --add-modules ALL-MODULE-PATH -jar "C:\app1\B4J\Objects\Code.jar"