--- old/src/hotspot/share/classfile/classLoader.cpp 2017-12-14 14:19:06.572478367 -0800 +++ new/src/hotspot/share/classfile/classLoader.cpp 2017-12-14 14:19:06.132461636 -0800 @@ -802,6 +802,14 @@ int end = 0; bool set_base_piece = true; +#if INCLUDE_CDS + if (DumpSharedSpaces || UseSharedSpaces) { + if (!Arguments::has_jimage()) { + vm_exit_during_initialization("CDS is not supported in exploded JDK build", NULL); + } + } +#endif + // Iterate over class path entries for (int start = 0; start < len; start = end) { while (class_path[end] && class_path[end] != os::path_separator()[0]) {