Kevin, Michael,
thanks for the answers/confirmation.
I created https://bugs.openjdk.org/browse/JDK-8385270.
-- Marius
Am 18.05.2026 um 16:21 schrieb Kevin Rushforth:
Hi Marius,
I can't think of a downside of updating this everywhere to use
JNI_VERSION_1_8. Feel free to create an issue and raise a PR.
-- Kevin
On 5/16/2026 8:37 AM, Marius Hanl wrote:
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