Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

This PR adds an option to explicitly make a jvm shim DLL, which may be required to use native libraries that depend on jvm.dll for JNI_* functions.

Fixes #4064

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 31, 2023
@graalvmbot graalvmbot merged commit f1da8dd into master Jan 31, 2023
@graalvmbot graalvmbot deleted the ap/GR-36191-jni-exports branch January 31, 2023 17:16
@jbrun
Copy link

jbrun commented Apr 3, 2023

Hello, I tried this with laurentforet sample in issue #4064, but it doesn't work, I have the same error. I tried with the lastest Developer Builds GraalVM CE 23.0.0-dev-20230331_1201
Do I have to enable an option when I create my native image?
Thank you for your reply.

@kkriske
Copy link
Contributor

kkriske commented Apr 23, 2023

@jbrun looking at the changes, you'll have to add -H:+CreateJvmShim to the native-image arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception in thread "main" java.lang.UnsatisfiedLinkError: no pkcs11wrapper in java.library.path

4 participants