-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Using JNA inside a native image does not work #673
Comments
Unfortunately, your link is broken. |
@peter-hofer : Oops the repo was private. I made it public now. |
That's not a "workaround" for JNA with |
For anyone else who ends up here with a similar issue, I believe this is what @peter-hofer is referring to. |
The class initializer section, yes. Note that my earlier statement above (#673 (comment)) about class initializers being run at image generation is no longer fully accurate, we now provide more control over class initialization with Full support for JNA is still not available or planned, I'm closing this issue. |
Unfortunately, this link is broken. |
My team is evaluating whether we can use Graals
native-image
tool to ship binaries for our software. Some parts of our software is interacting with native code. We use the library JNA to do this. Therefore i have tested whether we can use JNA inside a native image created with Graal. In my tests i get the following error:The reproduction is available in this repo.
It would be great if JNA could work with Graal as many existing applications are build on top of it and it would be nice if we do not have to rewrite those parts.
The text was updated successfully, but these errors were encountered: