Daestrum Expert Licensed User Longtime User Jan 15, 2019 #1 I understand that using compile to library the main module is ignored and not output to the library jar/xml. If the module that will become the library relies on jars loaded by the main module #additionalJar: …. as you cannot put #additionaljar: in the module. These do not get imported into the library jar, thus the library will not work unless you put all the additionaljar lines in the main module of the app using the library. Is there a way to force the additional jars to be put into the library?
I understand that using compile to library the main module is ignored and not output to the library jar/xml. If the module that will become the library relies on jars loaded by the main module #additionalJar: …. as you cannot put #additionaljar: in the module. These do not get imported into the library jar, thus the library will not work unless you put all the additionaljar lines in the main module of the app using the library. Is there a way to force the additional jars to be put into the library?
Erel B4X founder Staff member Licensed User Longtime User Jan 15, 2019 #2 The #AdditionalJar libraries will be included in the generated XML. Open the XML file and you will see it. Upvote 0
The #AdditionalJar libraries will be included in the generated XML. Open the XML file and you will see it.
Daestrum Expert Licensed User Longtime User Jan 15, 2019 #3 Yes I see that , maybe I was unclear. I meant copy the jars into the library jar so it needs no external references. If I compile an app I get a jar size of 30+meg which has the additional jar classes in. The library jar is 3k and does not have the classes in from the additional jars Upvote 0
Yes I see that , maybe I was unclear. I meant copy the jars into the library jar so it needs no external references. If I compile an app I get a jar size of 30+meg which has the additional jar classes in. The library jar is 3k and does not have the classes in from the additional jars
Erel B4X founder Staff member Licensed User Longtime User Jan 15, 2019 #4 It has nothing to do with the main module being ignored. Libraries shouldn't include other jars. It is better to reference other jars. If you do want to merge the jars then you will need to do it yourself. Upvote 0
It has nothing to do with the main module being ignored. Libraries shouldn't include other jars. It is better to reference other jars. If you do want to merge the jars then you will need to do it yourself.