8139297: java.lang.NoClassDefFoundError: Could not initialize class jdk.internal.jimage.ImageNativeSubstrate

Reviewed-by: alanb, jlaskey
This commit is contained in:
Chris Hegarty 2015-10-12 19:14:59 +01:00
parent bd69fa0635
commit dc881c5368

View File

@ -58,7 +58,7 @@ public class BasicImageReader implements AutoCloseable {
try {
substrate = ImageNativeSubstrate.openImage(imagePath, byteOrder);
} catch (UnsatisfiedLinkError ex) {
} catch (UnsatisfiedLinkError | NoClassDefFoundError ex) {
substrate = ImageJavaSubstrate.openImage(imagePath, byteOrder);
}