You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
When building a native-image that uses System.loadLibrary("awt") on macos. native-image does not output any dylibs, only the executable binary.
Produced artifacts:
/graal_shared_libs/Foo (executable)
When running the binary it throws an exception UnsatisifiedLinkError
Exception in thread "main" java.lang.UnsatisfiedLinkError: No awt in java.library.path
at org.graalvm.nativeimage.builder/com.oracle.svm.core.jdk.NativeLibrarySupport.loadLibraryRelative(NativeLibrarySupport.java:136)
at [email protected]/java.lang.ClassLoader.loadLibrary(ClassLoader.java:106)
at [email protected]/java.lang.Runtime.loadLibrary0(Runtime.java:916)
at [email protected]/java.lang.System.loadLibrary(System.java:2063)
at Foo.main(Foo.java:8)
at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
I have tried changing java.library.path to point at the dylib directory but to no avail.
I have also tested the same code on windows and it works there (correctly produces the dlls and no link exception).
Steps to reproduce the issue
I have created a reproducible repo that demonstrates the issue
Hi @ruwi-next thanks for reporting this issue. But unfortunately, this is a known issue.
You can track the efforts on solving the problem here: #4921
Additionally, you can read a little about this issue in the comments of the open ticket: #4124
Describe the issue
When building a native-image that uses
System.loadLibrary("awt")
on macos. native-image does not output any dylibs, only the executable binary.When running the binary it throws an exception UnsatisifiedLinkError
I have tried changing
java.library.path
to point at the dylib directory but to no avail.I have also tested the same code on windows and it works there (correctly produces the dlls and no link exception).
Steps to reproduce the issue
I have created a reproducible repo that demonstrates the issue
make run_native
Describe GraalVM and your environment:
Any help is much appreciated.
The text was updated successfully, but these errors were encountered: