intellij Idea javafx export无法构建artifact-fx:deploy不可用。

问题描述 投票:0回答:1

我花了很多时间来寻找从intellij导出javafx的方法,但最终都没有成功。我试过使用maven和其他一些方法,但都没有成功。enter image description here

enter image description here

enter image description here

这是我的一些设置。

intellij-idea javafx export executable-jar
1个回答
1
投票

我也遇到了同样的问题,Oracle只是在最近的JDK版本中增加了JavaFX文件的部署难度。

1)最简单的方法是在你的项目上设置JDK 8。File -> Project Structure -> Project -> Project SDK。

2)较难的方法是选择jar文件(不是JavaFx应用),然后按照。https:/www.youtube.comwatch?v=HGHu-SzL-5Ehttps:/openjfx.ioopenjfx-docs#install-javafx。

3)而最后一种方法是使用Gradle。https:/openjfx.ioopenjfx-docs#gradle。

© www.soinside.com 2019 - 2024. All rights reserved.