adoptium / jmc-build

Contains the Adoptium specific source code overrides and build pipeline script for the Java Mission Control project.
Apache License 2.0
22 stars 9 forks source link

Failed to load the shared JNI library #58

Open maxandersen opened 8 months ago

maxandersen commented 8 months ago

After battling with #41 and using cat org.openjdk.jmc-8.3.0-macosx.cocoa.x86_64.tar.gz | tar xv - instead of normal unzip I get:

Failed to load the JNI shared library "/Users/manderse/.sdkman/candidates/java/17.0.7-tem/bin/../lib/server/libjvm.dylib"

I now realize this is because I used x86_64 instead of aarch64 - but maybe the error message could be more informative and give hint to user to check they used the right download for their chiparchitecture?

reinhapa commented 8 months ago

@maxandersen unfortunately this error message is coming from the Java runtime itself as I see it. The definitive solution will be having the binaries correctly signed which comes with its costs...

maxandersen commented 8 months ago

Does the lack of signing make problems for jni?

Whats Weird to me is that if i use Java 17 it Works but Java 21 fails.