Class RuntimeJNIAccess
java.lang.Object
org.graalvm.nativeimage.hosted.RuntimeJNIAccess
This class provides methods that can be called during native image generation to register
classes, methods, and fields for JNI access at run time.
- Since:
- 22.3
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidMakes the provided classes available for JNI access at run time.static voidregister(Executable... methods) Makes the provided methods available for JNI access at run time.static voidMakes the provided fields available for JNI access at run time.
-
Method Details
-
register
-
register
Makes the provided methods available for JNI access at run time. Needed when native code looks up Java methods via GetMethodID or GetStaticMethodID.This API is deprecated; use the
JNIAccessinstead.- Since:
- 22.3
-
register
Makes the provided fields available for JNI access at run time. Needed when native code looks up Java fields via GetFieldID or GetStaticFieldID.This API is deprecated; use the
JNIAccessinstead.- Since:
- 22.3
-