Component Details - Using IntelliJ IDEA 2017.1 CE and jdk-9-ea+154
main() -
Set<String> set2 = Set.of("a", "b", "c");
set2.forEach(System.out::println);
module-info.java
module collection {
requires java.base;
}
Logs -
Error occurred during initialization of VM
java.lang.RuntimeException: Package jdk.internal.jimage.decompressor in both module jrt.fs and module java.base
at jdk.internal.module.ModuleBootstrap.fail(java.base@9-ea/ModuleBootstrap.java:699)
at jdk.internal.module.ModuleBootstrap.boot(java.base@9-ea/ModuleBootstrap.java:329)
at java.lang.System.initPhase2(java.base@9-ea/System.java:1928)
Doubtful over the implementation of initialization of VM, my question is that I haven't included module jrt.fs
- Where is it coming in the picture from? How do I debug such modules inclusion/exclusion? How do I further solve the current exception?
jrt.fs
. Which JDK version (build number?) are you running? Also, try looking for the module withjava --list-modules
. – Schoolbookjdk-9-ea+154
currently. Would look into the details of modules.Any idea over whatjrt.fs
is used for? Might help in getting to know. – Promycelium