B4J Question Unable to execute the b4j created .jar using Java - reg.

beelze69

Active Member
Licensed User
Longtime User
Hi,
I am a newbie to B4J.
I created a sample test application (I have attached the program here).
I ran the application and it ran perfectly from the IDE.
It created a file prjTest.jar

However when I execute java -jar prjTest.jar it gives error.

Please help.

Thanks
 

Attachments

What Java version are you trying to use?

 
Upvote 0
What Java version are you trying to use?

Hi Agraham,

It is 1.8.0_291

Attached the screenshot output of java -version command...
 

Attachments

  • Java_Version.jpg
    Java_Version.jpg
    20.3 KB · Views: 307
Upvote 0
Hi Don,

Attaching the screenshot of the full error message...
 

Attachments

  • output_of_Error.jpg
    output_of_Error.jpg
    263 KB · Views: 312
Upvote 0
tools->configure paths: javac.exe is from the java version 1.8.291? just guess maybe you installed 2 versions of java and only 291 is in Windows path.
 
Upvote 0
The simplest configuration is OpenJDK 11: https://www.b4x.com/b4j.html and build a standalone package.

View attachment 131860
Sorry Erel for late response ... (I was busy with some other activity)...

Yes..You standalone package works perfectly fine (I am able to execute the .exe file created) .. but I want to execute the created jar file ...

I am attaching the error message that says .. it requires JavaFX runtime components...

How should I go about further ?

Thanks...
 

Attachments

  • screenShot_JavaFX_runtime_components_missing.jpg
    screenShot_JavaFX_runtime_components_missing.jpg
    90.4 KB · Views: 295
Upvote 0
Back
Top