Hi all,
I did some experiments with GraalVM recently and got to a point where I
got the following exception:
Caused by: java.lang.UnsatisfiedLinkError: Unsupported JNI version
0x10002, required by glass
I then saw that there are still some locations in our code, e.g.
native-class\win\Utils.cpp where we return JNI_VERSION_1_2 on JNI_OnLoad
or use it in jvm->GetEnv(&env, JNI_VERSION_1_2);.
It looks like that this does not work anymore on JDK-25. I updated it to
JNI_VERSION_1_8 and it worked again for me. Does it make sense to bump
it everywhere to JNI_VERSION_1_8? Is there any downside in not doing
that? Is there more I need to know?
I can create an issue and a PR, but want to gather more information
about this first.
-- Marius
- [External] : JNI_OnLoad and other native code uses JNI_VER... Marius Hanl
-