Question details
Errors are reported as follows:
Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for C:\Users\tongx\eclipse-workspace\OctaneSDKJava\lib\OctaneSDKJava-1.22.0.30-jar-with-dependencies.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: JDOMAbout$Info.class found in top-level directory (unnamed package not allowed in module)
Attempt method 1 (failed)
In jdk9 and above, modules are introduced. Therefore, if a separate running class is created in the default package, it cannot be compiled. There is no such problem in jdk8; If you still want to run separate classes in the default package, delete module-info.java in the SRC folder.
But my java is version 1.8, and my attempt failed
Try method 2 (feasible)
Here, we have adopted the methods of other big men:
end
Read More:
- How to Solve Error occurred during initialization of boot layer
- [Solved] JAVA Error: Error occurred during initialization of boot layer java.lang.module.FindException
- [Solved] Error occurred during initialization of VM javalangNoClassDefFoundError javalangObject
- [Solved] jvm 1 Error occurred during initialization of VM Could not reserve enough space for object heap
- Eclipse relies on spring boot configuration processor, and there is no prompt for writing properties and YML
- [Solved] Error occurred during initialization of VM Could not reserve enough space for object heap
- [Solved] Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap
- [Solved] Eclipse Error: A JNI error has occurred, please check your installation and try again
- Eclipse Error: Could not create the Java Virtual Machine Error:A fatal exception has occurred
- [Solved] Eclipse Update Error: An error occurred while uninstalling session context was…
- [Solved] IDEA Import springboot Project Error: Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:<unknown>
- [Solved] ‘build.plugins.plugin.version‘ for org.springframework.boot:spring-boot-maven-plugin is missing.
- [Solved] Java.lang.BootstrapMethodError: call site initialization exception
- [Solved] Initialization of anonymous inner class member variable causes java.lang.stackoverflowerror
- [Solved] JAVA Operate Database Error: You have an error in your SQL syntax; Dao layer SQL statement error
- [Solved] Error processing condition on org.springframework.boot.autoconfigure.context.PropertyPlaceholderA
- log4j:WARN Error during default initialization [How to Solve]
- [Solved] springboot Project Run Error: HikariPool-1 – Exception during pool initialization.
- [Solved] ERROR org.apache.struts2.dispatcher.Dispatcher – Dispatcher initialization failed
- Spring-boot-maven-plugin Error [How to Solve]