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

  • prjTest.rar
    638 bytes · Views: 132

agraham

Expert
Licensed User
Longtime User
What Java version are you trying to use?

 
Upvote 0

beelze69

Active Member
Licensed User
Longtime User
Hi Agraham,

It is 1.8.0_291

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

Attachments

  • Java_Version.jpg
    20.3 KB · Views: 102
Upvote 0

beelze69

Active Member
Licensed User
Longtime User
Hi Don,

Attaching the screenshot of the full error message...
 

Attachments

  • output_of_Error.jpg
    263 KB · Views: 113
Upvote 0

kimstudio

Active Member
Licensed User
Longtime User
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

beelze69

Active Member
Licensed User
Longtime User
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
    90.4 KB · Views: 91
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…