I’m trying to run the sample app for the first time with:
mvn spring-boot:run
but I get this error:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.3.RELEASE:run (default-cli) on project mflix: An exception occurred while running. null: InvocationTargetException: Cannot load configuration class: mflix.Application: ExceptionInInitializerError: java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @d6b6264 -> [Help 1]
I can build and run the project from IntelliJ