B4J Question B4J Packager 11 Standalone and even the new Integrated one. Error build

DonManfred

Expert
Licensed User
Longtime User
I am doing a wrapper for JDA (JavaDiscordApi).
It comes with a jar including all dependencies.

Using this when running the App from the IDE works fine (UI App).
But when i try to build a standalone exe it stops with the error that it can not find a dependency like Jackson Databind.

I then switched to single jars. Starting with the JDA jar without any dependency.
To get the app running from the IDE i need to add some jars. Doing this with some #additionaljar directives.

When i try to build a standalone exe it comes up with the same error not finding the dependencies.

Do i need to place the jars added by additionaljar at a special place (folder) for the internal packager to be able to find them???


B4X:
#AdditionalJar:JDA-4.1.1_152.jar
'#AdditionalJar:JDA-4.1.1_DEV-withDependencies.jar
#AdditionalJar: mysql-connector-java-5.1.34-bin
#AdditionalJar: jackson-databind-2.10.0.jar
#AdditionalJar: jackson-core-2.10.1.jar
#AdditionalJar: jackson-annotations-2.11.0.jar
#AdditionalJar: okhttp-3.13.0.jar
#AdditionalJar: slf4j-api-1.7.25.jar
#AdditionalJar: slf4j-jdk14-1.7.25.jar
#AdditionalJar: commons-collections4-4.1.jar
#AdditionalJar: okio-2.6.0.jar
#AdditionalJar: kotlin-stdlib-1.3.41.jar
#AdditionalJar: kotlin-stdlib-jdk8-1.3.41.jar
#AdditionalJar: nv-websocket-client-2.9.jar
#AdditionalJar: trove4j-3.0.3.jar

Using this additionaljars it works when running the app from the IDE.

PD: I had the issue with the standalone packager but havn´t had the time to report it. I then saw the B4J Beta announcement and i tired again. With the same issue. So now i created this thread.
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Build a package. Do you get this error?
Yes.


Download the 3 files with this link please.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Open jackson-databind-2.10.1.jar and delete module-info.class. It will then build successfully. I expect it to work though you should of course test it.
It does not raise the old error. But it stuck now.

 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…