changeset 32985:5f78762b773b

8139297: java.lang.NoClassDefFoundError: Could not initialize class jdk.internal.jimage.ImageNativeSubstrate Reviewed-by: alanb, jlaskey
author chegar
date Mon, 12 Oct 2015 19:14:59 +0100
parents 4f0f4023875a
children ea54ac8672e7 7e6599b3d33d
files jdk/src/java.base/share/classes/jdk/internal/jimage/BasicImageReader.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/java.base/share/classes/jdk/internal/jimage/BasicImageReader.java	Mon Oct 12 20:13:22 2015 +0200
+++ b/jdk/src/java.base/share/classes/jdk/internal/jimage/BasicImageReader.java	Mon Oct 12 19:14:59 2015 +0100
@@ -58,7 +58,7 @@
 
         try {
             substrate = ImageNativeSubstrate.openImage(imagePath, byteOrder);
-        } catch (UnsatisfiedLinkError ex) {
+        } catch (UnsatisfiedLinkError | NoClassDefFoundError ex) {
             substrate = ImageJavaSubstrate.openImage(imagePath, byteOrder);
         }