Found the answer based on intellij output:) I had to add the location of the classes to the vm arguments in the run configurations as well as the module name/path to main. like below. See the java -help
command for more info regarding -m
and -p
More Related Contents:
- What is an illegal reflective access?
- Unable to derive module descriptor for auto generated module names in Java 9?
- How to solve InaccessibleObjectException (“Unable to make {member} accessible: module {A} does not ‘opens {package}’ to {B}”) on Java 9?
- Package conflicts with automatic modules in Java 9
- List the modules resolved during the application startup
- What is an automatic module?
- Scanning classpath/modulepath in runtime in Java 9
- Is it possible to mix –class-path and –module-path in javac (JDK 9)?
- How to use 3rd party library in Java9 module?
- Accessing resource files from external modules
- Create Java runtime image on one platform for another using Jlink
- Java 9: Module java.xml.bind is not accessible in Eclipse
- Why did Java 9 introduce the JMOD file format?
- How do you organize tests in a modular Java project?
- How to tell eclipse to add-exports when compiling
- How to put a jar in classpath in Eclipse? [duplicate]
- Eclipse Error: “Failed to connect to remote VM”
- Is there a way to automatically generate getters and setters in Eclipse?
- Maven dependencies not visible in WEB-INF/lib
- Eclipse: enable assertions
- Unable to complete the scan for annotations for web application [/app] due to a StackOverflowError
- Eclipse + Java 8 support?
- UnsupportedClassVersionError: JVMCFRE003 bad major version in WebSphere AS 7
- Error “A JNI error has occurred. Please check your installation and try again in Eclipse x86 Windows 8.1”
- Adding 3rd party jars to WEB-INF/lib automatically using Eclipse/Tomcat
- Eclipse tabs are broken how to fix it? [closed]
- get rid of POM not found warning for org.eclipse.m2e:lifecycle-mapping
- Removing all types of comments in java file
- Stream.peek() method in Java 8 vs Java 9
- How do I add the Java API documentation to Eclipse?