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 ;
本文标签:
版权声明:本文标题:graalvm - Unsupported OSarch, cannot find darwinaarch64libzstd-jni-1.5.5-1.dylib or load zstd-jni-1.5.5-1 from system libraries 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744212843a2595501.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论