创建Javafx项目时遇到的问题 [英] Issues creating a javafx project

查看:695
本文介绍了创建Javafx项目时遇到的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我想在netbeans中创建一个新的javafx项目时,当我进入命名项目的阶段时,都会收到以下错误消息:

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:

无法自动设置JavaFX平台.请转到平台管理器,创建一个非默认的Java SE平台,然后转到JavaFX选项卡,启用JavaFX并填写有效JavaFX SDK和JavaFX Runtime的路径.注意:JavaFX SDK可以从JavaFX网站下载."

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

推荐答案

仅使用NetBeans 8(摆脱了令人困惑的JavaFX Platform要求).

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

NetBeans 8安装说明:

与以前的NetBeans IDE版本不同,NetBeans IDE 8.0不需要设置启用FX"的Java平台即可在IDE中利用JavaFX支持.如果安装了JDK 7 Update 6(或更高版本)或JDK 8的任何标准Java平台,则可以在IDE中开发JavaFX项目.

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.

Oracle在其Java下载站点上提供了 -捆绑的NetBeans 8 + Java 8 (Java 8包括JavaFX 8).我建议您只使用联合包装.另外,获取 SceneBuilder 2 的副本,您应该很高兴将JavaFX开发所需的所有工具与之搭配使用.

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.

这篇关于创建Javafx项目时遇到的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆