Skip to content

Commit

Permalink
Fix UnsatisfiedLinkError when using ImageIO and jpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
jerboaa authored and zakkak committed Dec 10, 2020
1 parent 9b1a0ff commit 9636ce3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 9636ce3

Please sign in to comment.