【发布时间】:2020-02-25 00:03:09
【问题描述】:
我正在尝试根据this tutorial 让 Spring Boot 与 Java FX 一起使用。具体来说,我克隆并尝试运行this project from the tutorial,它应该设置正确。
当我尝试在 Eclipse 中使用 Run as / Spring Boot App 运行项目时,出现以下错误:
Error: JavaFX runtime components are missing, and are required to run this application
我正在运行 JDK 11,并尝试根据教程将 javafx jar 添加到构建路径。我错过了什么吗?
【问题讨论】:
-
如果您在运行某些东西时遇到问题,请从更简单的东西开始,例如在 this guide 中演示的使用 JavaFX(没有 Spring,没有 IDE)的 HelloWorld。一旦你有这个工作,然后继续尝试get JavaFX working in Eclipse。只有当你有这个工作后,尝试在 Spring 中添加。
标签: java spring-boot javafx