Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GR-36191] Add option to explicitly make jvm shim DLL. #5859

Merged
merged 1 commit into from
Jan 31, 2023

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