admin管理员组

文章数量:1399155

Graalvm is not able to load libzstd-jni, getting error while running executable generated from graalvm. Able to bring server up, however getting below error at run time.

commend used for generating binary : mvn package -Dpackaging=native-image

pom is having below dependency :

   <dependency>
      <groupId>com.github.luben</groupId>
      <artifactId>zstd-jni</artifactId>
      <version>1.5.7-2</version>
    </dependency>
Using 
MacBook Pro Apple M3 Pro
micronaut parent : 4.2.1
java version "17.0.12" 2024-07-16 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 17.0.12+8.1 (build 17.0.12+8-LTS-jvmci-23.0-b41)
java.lang.UnsatisfiedLinkError: no zstd-jni-1.5.2-5 in java.library.path
Unsupported OS/arch, cannot find /darwin/aarch64/libzstd-jni-1.5.2-5.dylib or load zstd-jni-1.5.2-5 from system libraries. Please try building from source the jar or providing libzstd-jni-1.5.2-5 in your system.
        at .graalvm.nativeimage.builder/com.oracle.svm.core.jdk.NativeLibrarySupport.loadLibraryRelative(NativeLibrarySupport.java:136)
        at [email protected]/java.lang.ClassLoader.loadLibrary(ClassLoader.java:50)
        at [email protected]/java.lang.Runtime.loadLibrary0(Runtime.java:818)
        at [email protected]/java.lang.System.loadLibrary(System.java:1993)
        at com.github.luben.zstd.util.Native.load(Native.java:97)
        at com.github.luben.zstd.util.Native.load(Native.java:65)
        at com.github.luben.zstd.Zstd.<clinit>(Zstd.java:13)

git Issue ;

本文标签: