B4J Question Autonomous Packages (put several apps in one installation)

virpalacios

Active Member
Licensed User
Longtime User
Hi, all, good night, good day or good afternoon. 🤔 I got this idea (put several apps in one installation) after checking autonomous package folder. It looks like a java runtime containing all libs necesary to run programs, because every packaged app has its own runtime installations get big. I wonder if someone had tried to put more than one app in build folder.📂

Thanks for our comments

Best Regards :D👋👍
 

zed

Well-Known Member
Licensed User
No, you can't simply put multiple projects in the same folder generated by B4J Packager.
However, you can manually organize a shared folder with a shared JRE and several .jar files, and then create your own scripts/installers.

Install a common JRE (or JDK) on the target machine.
Then, distribute only the .jar files for your different applications, without repeating the runtime.
Each application can be launched with a script that calls `java -jar MyAppli.jar`.

But be careful, all your applications must be compatible with the same version of Java.
If an application uses specific native libraries, you must include them in its folder (AppX/).

Alternatively, you can create a single installer (Inno Setup, NSIS, etc.) that copies this structure to the target machine.
 
Upvote 0

virpalacios

Active Member
Licensed User
Longtime User
No, you can't simply put multiple projects in the same folder generated by B4J Packager.
However, you can manually organize a shared folder with a shared JRE and several .jar files, and then create your own scripts/installers.

Install a common JRE (or JDK) on the target machine.
Then, distribute only the .jar files for your different applications, without repeating the runtime.
Each application can be launched with a script that calls `java -jar MyAppli.jar`.

But be careful, all your applications must be compatible with the same version of Java.
If an application uses specific native libraries, you must include them in its folder (AppX/).

Alternatively, you can create a single installer (Inno Setup, NSIS, etc.) that copies this structure to the target machine.
Thanks a Lot Zed, great idea, I got this need because a new software provider is using Java, however we have to coordinate java versions and libraries.

Best Regards
 
  • Like
Reactions: zed
Upvote 0
Top