B4J Question How to run B4J .jar application on linux

vecino

Well-Known Member
Licensed User
Longtime User
Hello, I can run the applications created with B4J using the command:
java -jar something.jar
In linux, too.
But, if it has been created with B4J it cannot be run. It always shows the error that it needs javafx runtime.
What do I have to do to run in linux the applications created with B4J?
Thank you.
 

vecino

Well-Known Member
Licensed User
Longtime User
Yes. Just use your file paths, not mine. Oh yea, Java 12 is a typo. I’m all thumbs on phones
Yes, I tried it the way you put it, but it doesn't work with v11, I've been "going round and round" it but in the end I gave up, there must be something I forgot.
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
What did you try (show your whole command used)? Where is your version of Java 11 installed? Where was JavaFX installed? What was the error message?
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
It finally worked with openjdk 11 :)
I have uninstalled all java. I have searched and deleted all the remaining configuration files and directories.
I have made a clean installation of openjdk 11 and I have executed it with the parameters that you have indicated.
Thank you very much to you, and to all the people who helped me.

This is the order:
/usr/lib/jvm/java-1.11.0-openjdk-amd64/bin/java --module-path /usr/lib/jvm/java-1.11.0-openjdk-amd64/javafx/lib --add-modules ALL-MODULE-PATH -jar test.jar
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I have done several tests and the same BJ4 ".jar" works perfectly in windows and in linux.
Thanks again.

 
Upvote 0
Top