我是javafxEclipse新手。我从 eclipse 市场安装了 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
Run Code Online (Sandbox Code Playgroud)
这已从版本 11+ 的 JDK 中删除。您必须向项目显式添加一些外部依赖项。
<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>
Run Code Online (Sandbox Code Playgroud)
并删除--add-modules指令。
| 归档时间: |
|
| 查看次数: |
8038 次 |
| 最近记录: |