Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unable to load libbridj.so dependency on SunOs  #452

@AndreasSandberg

Description

@AndreasSandberg

Hi!

We're trying to include our binaries in a single jar, however when we start up our application we're having problems with BridJ loading it's own dependencies (in this particularly case gcc_s). We have tried to include these dependencies into the "lib/sunos_x86/" directory but it seems like the extraction of these files happen to late.

Is there any way of including BridJ:s own dependencies into the jar so that they are loaded before BridJ starts up?

The error we get is:

Caused by: java.lang.UnsatisfiedLinkError: /var/tmp/BridJExtractedLibraries4468278197869084619/libbridj.so: ld.so.1: java: fatal: libgcc_s.so.1: open failed: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1003)
at org.bridj.Platform.initLibrary(Platform.java:420)
... 100 more

Resulting in a
java.lang.NoClassDefFoundError: Could not initialize class org.bridj.Platform

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions