diff --git a/src/main/resources/native/android/c/launcher.c b/src/main/resources/native/android/c/launcher.c index 9127ac0e..6d30f17d 100644 --- a/src/main/resources/native/android/c/launcher.c +++ b/src/main/resources/native/android/c/launcher.c @@ -208,3 +208,18 @@ void JVM_RawMonitorEnter() { void JVM_RawMonitorExit() { fprintf(stderr, "We should never reach here (JVM_RawMonitorExit)\n"); } + +// AWT: GraalVM native-image explicitly adds (unresolved) references to libawt +// so we need to make sure the JNI_OnLoad symbols are there. + +void Java_java_awt_Toolkit_initIDs() { + fprintf(stderr, "We should never reach here (Java_java_awt_Toolkit_initIDs)\n"); +} + +void JNI_OnLoad_awt() { + fprintf(stderr, "We should never reach here (JNI_OnLoad_awt)\n"); +} + +void JNI_OnLoad_awt_headless() { + fprintf(stderr, "We should never reach here (JNI_OnLoad_awt_headless)\n"); +}