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:
- [Solved] JAVA Error: Error occurred during initialization of boot layer java.lang.module.FindException
- Java error: java.lang.NoSuchMethodError
- [Solved] Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:
- OTA Pack Compile Error: ExternalError: Failed to run signapk.jar: return code 1:Error: A JNI error has occurred
- java: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x590
- How to Solve Swagger error: IllegalStateException
- [Solved] Error creating bean with name ‘mvcContentNegotiationManager‘: Lookup method resolution failed
- Error resolution: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/Datatype
- [Solved] Java 9 reflection error: java.lang.reflect.InaccessibleObjectException
- How to Solve Error: Invalid bound statement (not found)
- How to Solve Nosuchmethoderror Error
- [Solved] Powermock error: Java.Lang.linkageerror: load constraint violation
- [Solved] ZK Connect Error: A JNI error has occurred, please check your installation and try again
- [Solved] Mvel2 Error: java.lang.VerifyError method: getKnownEgressType signature
- [Solved] Initialization of anonymous inner class member variable causes java.lang.stackoverflowerror
- How to Solve classnotfoundexception error in spark without Hadoop runtime
- [Solved] jar file Execute Error: power shell error: unable to access jarfile
- How to Solve JAVA Error: error: A JNI error has occureed
- How to Solve Error: Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
- [Solved] IDEA: Internal error (java.lang.UnsupportedClassVersionError)