Issues creating a javafx project

五迷三道 提交于 2020-01-06 08:42:07

问题


When ever i want to create a new javafx project in netbeans, when I get to the stage of naming my project, I get this error message:

"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"

How can I solve this issue?


回答1:


Just use NetBeans 8 (which has got rid of the confusing JavaFX Platform requirement).

From the NetBeans 8 Installation Instructions:

Unlike previous versions of NetBeans IDE, NetBeans IDE 8.0 does not require that you set up an "FX-enabled" Java platform in order to utilize JavaFX support in the IDE. You can develop JavaFX projects in the IDE if you install any standard Java platform that is JDK 7 Update 6 (or newer) or JDK 8.

On their Java download site, Oracle provide a co-bundle of NetBeans 8 + Java 8 (Java 8 includes JavaFX 8). I advise you just use the co-bundle. Also grab a copy of SceneBuilder 2 and you should be good to go with all of the tools you need for JavaFX development.




回答2:


I think this answer: https://stackoverflow.com/a/57340742/7177756 will help you

"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"


来源:https://stackoverflow.com/questions/23734994/issues-creating-a-javafx-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!