Skip to content

java.lang.UnsatisfiedLinkError on v4 in Windows #108

@JordanMLee

Description

@JordanMLee

Getting java.lang.UnsatisfiedLinkError: No native resource found at /windows-x64/libh3-java.dll when trying to load dlls when calling H3Core.newInstance() on V4.

It appears that the H3 V4 builds on maven and other sites are missing the specific relative path /windows-x64/libh3-java.dll. I’d run into this same issue when trying out the release candidates. V3 builds had the [os]-[architecture] path. You can see the difference below.

V4 V3
image image

When initializing with H3Core.newInstance(), the class loader searches for [os]-[architecture]. If you manually change the windows dll naming back to V3 (remove "-static"), it'll work.

Looks like there weren't any changes in the build script since last release. Curiously if it's possible to get the naming switched back, wondering if this is an issue with Dockcross (if you still use that for cross compiling).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions