When using GraalVM to compile a native application with Spring Boot 3, a bug occurred. #9885
Unanswered
yaomoshen520
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Spring Boot 3 web project I built is using JDK version 17. My project depends on a JAR library that uses JNI to call a .dll dynamic library. I compiled my project using the command mvn -Pnative -DskipTests clean native:compile -X. However, when I run it, I encounter an error that the .dll dynamic library cannot be found. I have added the following plugin configuration to include the .dll in the native compilation:
xml
org.graalvm.buildtools
native-maven-plugin
-H:IncludeResources=.*.dll
But even with this configuration, the issue persists.
Beta Was this translation helpful? Give feedback.
All reactions