Mashiane Expert Licensed User Longtime User May 5, 2022 #1 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. Code: Copy C:\jdk-11.0.1\bin\java.exe -jar C:\app1\B4J\Objects\Code.jar 4. This is the output I'm getting.. Code: Copy 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 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. Code: Copy C:\jdk-11.0.1\bin\java.exe -jar C:\app1\B4J\Objects\Code.jar 4. This is the output I'm getting.. Code: Copy 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.
Solution Magma May 5, 2022 Hi there... can you try: Code: Copy javaw --module-path C:\jdk-11.0.1\javafx\lib --add-modules ALL-MODULE-PATH -jar "C:\app1\B4J\Objects\Code.jar"
Hi there... can you try: Code: Copy javaw --module-path C:\jdk-11.0.1\javafx\lib --add-modules ALL-MODULE-PATH -jar "C:\app1\B4J\Objects\Code.jar"
Magma Expert Licensed User Longtime User May 5, 2022 #2 Hi there... can you try: Code: Copy javaw --module-path C:\jdk-11.0.1\javafx\lib --add-modules ALL-MODULE-PATH -jar "C:\app1\B4J\Objects\Code.jar" Upvote 1 Solution
Hi there... can you try: Code: Copy javaw --module-path C:\jdk-11.0.1\javafx\lib --add-modules ALL-MODULE-PATH -jar "C:\app1\B4J\Objects\Code.jar"