diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JNIRegistrationAwt.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JNIRegistrationAwt.java index f4874ac2095b..1df4985c2171 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JNIRegistrationAwt.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JNIRegistrationAwt.java @@ -126,6 +126,9 @@ private static void handlePreferencesClassReachable(DuringAnalysisAccess access) } private static void registerJPEG(DuringAnalysisAccess access) { + + PlatformNativeLibrarySupport.singleton().addBuiltinPkgNativePrefix("com_sun_imageio_plugins_jpeg"); + NativeLibraries nativeLibraries = getNativeLibraries(access); NativeLibrarySupport.singleton().preregisterUninitializedBuiltinLibrary("javajpeg");