我是 java fx 的新手,我已经下载了在 java 11 上运行的 Apache Netbeans 9。
由于 java fx 是单独提供的,我已经下载了 openjfx-11.0.1_SDK 并按照此链接中的步骤操作 https://openjfx.io/openjfx-docs/#install-javafx
当我尝试在 apache netbeans 中创建 java fx 应用程序时,出现以下错误
Failed to automatically set-up a JavaFX Platform. Please go to Platform Manager, create a non-default Java SE platform, then go to the JavaFX tab, enable JavaFX and fill in the paths to valid JavaFX SDK and JavaFX Runtime. Note: JavaFX SDK can be downloaded from JavaFX website
附上netbeans 10的屏幕截图。
最佳答案
这是为了将来会偶然发现这个问题的开发人员。您可以按照此视频安装 JavaFX13 并将其与 Apache Netbeans 11.2 集成。 Try following the instructions here
CSS 自动完成可能存在问题,但您现在可以创建 JavaFx 项目。
编辑:根据其他答案的建议,您可以从 JavaFX 的官方页面下载 JavaFX。
关于javafx-11 - 在 Apache Netbeans 10 中创建 JavaFX11 应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54034710/