diff --git a/test/lib/jdk/test/lib/Platform.java b/test/lib/jdk/test/lib/Platform.java index 7df5c2cbe91..0b4a0e178b3 100644 --- a/test/lib/jdk/test/lib/Platform.java +++ b/test/lib/jdk/test/lib/Platform.java @@ -364,7 +364,11 @@ public static Path libDir(Path image) { * Returns absolute path to directory containing JVM shared library. */ public static Path jvmLibDir() { - return libDir().resolve(variant()); + if (isJ9()) { + return libDir().resolve("default"); + } else { + return libDir().resolve(variant()); + } } private static String variant() {