eclipse - 未找到模块 java.xml.bind
问题描述
我是javafx
eclipse 的新手。我从 eclipse market 安装了 eclipse 然后 javafx 。我用场景生成器生成了一个 fxml 代码,但我无法执行它。我真的被阻止了,找不到任何解决方案
我--add-modules java.xml.bind
在运行配置中添加了一个参数,但没有机会
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.xml.bind not found
解决方案
这已从 JDK 11+ 版本中删除。您必须显式地将一些外部依赖项添加到您的项目中。
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.1</version>
<scope>runtime</scope>
</dependency>
并删除该--add-modules
指令。
推荐阅读
- docker - 在 docker 中使用卷时出现意外行为
- r - 我可以删除两列 R 中的重复组合吗
- c# - 用于多个邮箱的单一 GoogleCredential 和 GmailService
- vue.js - 托管在 netlify 上的 Vue 应用程序无法在 IE 11 上加载
- reactjs - 蚂蚁设计。日期选择器。更改选择年份
- python - 找到与随机初始化数组最相似的词
- r - 由线搜索的零步停止 - R 提前停止优化
- php - 为什么我不能在 PHP 中绑定到这个套接字?
- angular - 如何使用或不使用参数来简化 http.get()
- ejabberd - 如何从 ejabberd 服务器上的 xml 中提取数据?