--- old/src/share/vm/runtime/arguments.cpp 2017-03-21 13:43:34.170441574 +0000 +++ new/src/share/vm/runtime/arguments.cpp 2017-03-21 13:43:34.038432515 +0000 @@ -2932,6 +2932,10 @@ if (res != JNI_OK) { return res; } + } else if (match_option(option, "--permit-illegal-access")) { + if (!create_property("jdk.module.permitIllegalAccess", "true", ExternalProperty)) { + return JNI_ENOMEM; + } // -agentlib and -agentpath } else if (match_option(option, "-agentlib:", &tail) || (is_absolute_path = match_option(option, "-agentpath:", &tail))) {