Executing a simple \"Hello World\" program using Java 9 results in the following error message:
Error occurred during initialization of boot layer
I had the same issue and I fixed it this way:
mywork
.myWork
. Let us call the class HelloWorld
.Note: First, make sure that Java is running properly using the CMD command in that way you will understand the problem is on eclipse and not on JDK.
You say that your module-info.java
contains
module myModule {}
That means it declares a module called myModule
, not com.pantech.myModule
. Pointing this from the command format:
-m <module-name>/<main-class>