changeset 12915:640d543aea86

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 d1aa33d3720c
children fed8b8b53b4b 4b901a05d4ee
files src/java.base/share/classes/jdk/internal/jimage/BasicImageReader.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/jdk/internal/jimage/BasicImageReader.java	Mon Oct 12 20:13:22 2015 +0200
+++ b/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);
         }