B4J Question Single run file?

Shay

Well-Known Member
Licensed User
Longtime User
Hi
I am using the java 11, is there a way to get single run file (such as the java in previous java ver)?
If I am trying to run the output java I am getting:
Error: JavaFX runtime components are missing, and are required to run this application

I need to provide customer easy way to run (not the entire package)
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
There are two main options to distribute B4J apps:

1. Assume that Oracle Java 8 is properly installed on the client computer.
Use Java 8. Run your app in release mode. Send the small compiled jar to the user. It will run on Linux, Mac or Windows. The user will be able to double click on the jar or run it with java -jar.

2. Don't assume anything.
Use Java 11+.
Windows: Build a package with the integrated packager tool. Use Inno Setup to build a setup file.
Mac / Linux: Use B4J-Bridge with B4JPackager11 to build a package. The package must be built on the target platform.
Distribute the package. On Mac you need to follow additional, quite complicated steps, to create a notarized package if you want it to run without warnings.

I recommend to use the integrated packager and distribute a single setup file.
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
Thanks, I also think using option 2 is better since it is showing faster performance
 
Last edited:
Upvote 0
Top