B4J Question Execute .JAR file

Under MS Windows, I have created a very basic application and I try to run it like this from the command line: C:\JAVA\Jdk-11.0.1.1.1.1.java.exe -jar JDEMO.jar
and I get the following error: "Error JavaFX runtime components are missing, and are required to run this application".

How do I fix it? I don't want to create the executable (.exe) that is done with the "Build Standalone Package" option, I want to run the .jar directly to be able to use it also in linux.

What am I doing wrong and what is the solution?

Thank you very much
 
Last edited:
Solution
You can use this;

tchart

Well-Known Member
Licensed User
Longtime User
You can use this;

 
Upvote 1
Solution

alas

Member
Interesting tool, but not practical. I can't put the end user to do all those steps every time I'm going to use my .jar file.
In any case, thank you very much, I was able to do it with a .bat file.
i allowed these options for users to define ,each user has openjfx , openjdk on different location , how you did it with .bat? it will search for paths automatically? please share
thanks
 
Upvote 0
Top