-
Notifications
You must be signed in to change notification settings - Fork 170
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
JNI Version 9 and 10 #209
Comments
Which Java version did you need to set it for? |
I originally needed to set it for Oracle JRE 8, and I am now using that same flag for AdoptOpenJdk 11, and it is working fine. I think most of my dependencies so far are still compiled to run against JRE 8, but I'm not sure. Perhaps the trouble won't come until those dependencies start requiring/compiling-against Java 11+? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It appears that packr currently supports only JNI Version 6 and 8
packr/PackrLauncher/src/main/cpp/packr.cpp
Lines 582 to 590 in 9c9bb9d
packr/PackrLauncher/src/main/headers/packr.h
Lines 23 to 25 in 9c9bb9d
But there are now two newer versions (link). JNI_VERSION_10 is used for Java 10 through to at least 17.
I haven't encountered any problems with this so far, but I know that I did need to set
"jniVersion": 8
in myconfig.json
. For people upgrading to newer JVMs, if you are encountering issues with JNI, you might want to investigate here.The text was updated successfully, but these errors were encountered: