我已将 rs2xml
jar 文件以及 mysql 连接器文件导入到我的项目的引用库中。我的模块路径中还有 javafx
。
当我尝试运行主类时出现此错误:
Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for
C:\MScSoftware\mscProjectV6\src\jdbcConnector\rs2xml.jar Caused by:
java.lang.module.InvalidModuleDescriptorException:
JDOMAbout$Author.class found in top-level directory (unnamed package
not allowed in module)
最佳答案
将模块路径中的文件r2xml.jar
移动到类路径。
关于java - Eclipse 错误 :JDOMAbout$Author. 在顶级目录中找到类(模块中不允许未命名的包),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57449088/