B4J Question Could not load jssc library - Linux, B4JPackager11 - SOLVED

Gandalf

Member
Licensed User
Longtime User
Hi,

I try to package serial terminal application on Linux (Mint20). Other apps are packing Ok there, so setup is correct in general. I have extracted libjSSC-2.8_x86_64.so from jssc.jar and placed into /bin after packing, tried different versions of it, last one from this post. Tried renaming the library file any ways I could imagine. This solution did not work also. Nothing helps, I still get the following error:


Any advise, please?
 

Gandalf

Member
Licensed User
Longtime User
Thank you for prompt reply!

With command
./jdk-11.0.1/bin/java --module-path ./jdk-11.0.1/javafx/lib --add-modules=javafx.controls,javafx.fxml,javafx.web -jar terminal.jar
it runs Ok.

Tried the latest version of the library, extracted libjssc.so from jssc.jar\natives\linux_64, no success, "Could not load...".

CPU type on host machine is Intel Core i5-7300U. Linux Mint 20 x64 runs under VirtualBox with 2 CPU cores allocated.
 
Upvote 0

Gandalf

Member
Licensed User
Longtime User
Problem solved. File libjssc.so should be placed not to /bin folder, but to /lib folder instead. I didn't succeed with copying it automatically through #CustomBuildAction: After Packager instruction, manual copy worked just fine.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…