根据this tutorial的说法,我正在尝试让Spring Boot与Java FX一起工作。具体地说,我克隆并尝试运行this project from the tutorial,它应该是正确设置的。
当我尝试使用run as / Spring Boot App在Eclipse中运行项目时,我得到了以下错误:
Error: JavaFX runtime components are missing, and are required to run this application
我正在运行JDK 11,并尝试根据教程将javafx jars添加到构建路径中。我是不是遗漏了什么?
发布于 2019-10-30 02:31:55
除了将JavaFX库添加到构建路径之外,还必须编辑运行配置并将--add-modules javafx.controls,javafx.fxml添加到VM参数中。
基于@珠海的评论再次阅读the official guide时看到了这一点。
https://stackoverflow.com/questions/58612663
复制相似问题