A DESCRIPTION OF THE PROBLEM :
The interactions between the new module system and JNI do not appear to be documented. Though there are many new options available when calling java from the command line, those options are not currently accepted by JNI_CreateJavaVM. Directly attempting to set properties such as "jdk.module.addexports" produce
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring system property options whose names match the '-Djdk.module.*'. names that are reserved for internal use.
There needs to be additional documentation of how new language features such as modules interact with JNI. Without such documentation, it is difficult to access features when embedding the JVM that are available when launching from the command line.