java - Eclipse 错误 :JDOMAbout$Author. 在顶级目录中找到类(模块中不允许未命名的包)

标签 java

我已将 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/

相关文章:

java - BlueJ Java 谜题中移动方法的条件语句

java - ListSelectionListener 接口(interface)中的 valueChanged 方法存在问题

java - 如何获取JRadioButton的ButtonGroup

java - ActionBar 选项卡和 ViewPager 的多 fragment 布局

java - Jenkins API : EnvVars. overrideAll 不会覆盖管道作业中的现有环境变量。

java - 从 selenium session 中获取 cookie

java - 将此字段值直接注入(inject) "studentStepOne",这是使用它的唯一方法

java - Eclipse 中划掉断点的含义

java - 没有 RPC 代理的 GXT 分页

java - 是否可以在 Intellij IDEA 中创建顶级测试运行配置,以便我的所有 JUnit 测试都可以使用它运行?