Im exploring java9 and Im tring to create a custom jre following this link. But Im getting IllegalArgumentException.Below is my folder structure after compilation .
out
|->moduleA
| |->module-info.java
| |->pkg1
| |->Test.class
|
|->java.base.jmod
Im able to run my program with default jre.But when I tried creating custom jre using the following command :jlink --module-path out --add-modules moduleA,java.base --output customjre
I get Error: java.lang.IllegalArgumentException
Im not sure what Im missing.Any help will be really useful.