B4J Question MergeLibraries: False

giannimaione

Well-Known Member
Licensed User
Longtime User
Hi all,
i use jPOI (excel supports)

when compile with MergeLibraries: True , app jar is about 14000 kb


when compile with MergeLibraries: False , app jar is about 23 kb

i want to compile with MergeLibraries: False

which lib distribuite? which folder i copy it ?

#Region Project Attributes
#MainFormWidth: 600
#MainFormHeight: 600
#AdditionalJar: sqlite-jdbc-3.7.2
#MergeLibraries: False
#End Region

sorry for my bad English
 

giannimaione

Well-Known Member
Licensed User
Longtime User
hello lemonisdead

i mistake,
my app use JavaObject, jCore, jFx, jPoi, jSql, and #AdditionalJar: sqlite-jdbc-3.7.2

main folder is named "MyFolder" and i put into a MyApp.jar
Now into folder "MyFolder", i must create a folder named "Libs" ???? and copy which libraries ?
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hello,
I would create a folder named "libs" (in lower case) inside the folder where your MyApp.jar is located (MyFolder) and copy in that lib folder, those files :
- JavaObject.jar
- jCore.jar
- jFX.jar
- jPOI.jar
- jSQL.jar
- sqlite-jdbc-3.7.2.jar

Edit: replaced "small caps" by "lower case" (I wrongly explained)
 
Last edited:
Upvote 0

giannimaione

Well-Known Member
Licensed User
Longtime User
This is the solution
solution.PNG
 
Upvote 0

MaFu

Well-Known Member
Licensed User
Longtime User
Disabling the merge step is useful for server applications where you copy the libraries once and can then update the program jar faster.
Or if you have more then one program in the same folder. In this case the external libs also makes sense.
 
Upvote 0
Top