B4J Question Initegrated B4JPackager - How to add unmerged libraries?

ToolboxZX

Member
Licensed User
Longtime User
What is the proper method to add one (or more) libraries, when they are not merged, for distribution using the packager?

For example, if during the release build, the compiler displays that the following libraries should be distributed in the libs folder:
Archiver.jar, B4JDragToMe.jar

Is it the #PackagerProperty: which is used, such as:

#PackagerProperty: IncludedModules = Archiver.jar
#PackagerProperty: IncludedModules = B4JDragToMe.jar

Or does one simply copy these files to the \temp\build\lib\ folder after the packager is done, before running the Inno Script?
 

ToolboxZX

Member
Licensed User
Longtime User
Sorry, maybe I am using the wrong terminology. What I meant is when you build a B4J application in Release mode,
setting the attribute: #MergeLibraries: False

What is the proper method of getting the support libraries bundled using the installer (or the Inno script)
so that they are deployed in the lib folder as part of the installation?

This is with regards to this thread:

https://www.b4x.com/android/forum/threads/sshj-ssh-scp-sftp-for-java.88615/

Using SSHJ. Specifically "NOTE2"
*NOTE2* Also when running in Release you should set #MergeLibraries: False because of the bouncy castle dependency (bcprov-jdk15on-159) which is a signed jar, and when running with #MergeLibraries: True that jar is decompiled and compiled in your jar and therefore losses its signing.

Also post #37 of that thread:
When MergeLibraries is set to False then all the libraries in your project will not be merged into jar file. When you run your project in release mode from the ide in the window the outputs you can see a message like: "The following libraries should be distributed in the libs folder:" and then it lists all of the libraries needed to be copied to a folder named libs that sits near your jar.
 
Upvote 0
Top