简体   繁体   English

Netbeans 8.0的Java Platform Manager中缺少JavaFX选项卡

[英]JavaFX tab is missing from Netbeans 8.0's Java Platform Manager

When I follow the step in https://netbeans.org/kb/73/java/javafx-setup.html#create-platform-manual , I expect I will be getting a JavaFX tab 当我按照https://netbeans.org/kb/73/java/javafx-setup.html#create-platform-manual中的步骤进行操作时,我希望我将获得JavaFX选项卡

在此处输入图片说明

However, what I'm getting from latest Netbeans 8 is 但是,我从最新的Netbeans 8中得到的是

在此处输入图片说明

The JavaFX tab is missing! JavaFX选项卡丢失!

I can see jfxrt.jar at C:\\Program Files\\Java\\jdk1.7.0_51\\jre\\lib . 我可以在C:\\Program Files\\Java\\jdk1.7.0_51\\jre\\lib看到jfxrt.jar Is there any workaround I can do? 有什么办法可以解决?

I can't tell what you are after but I beleive JavaFX functionality is already there for you. 我无法告诉您要做什么,但我相信JavaFX功能已经为您提供。

I am using NetBeans 8.0 with JDK 1.7.0_51 as a default platform and I also don't have any JavaFX tab but I am able to work with JavaFX projects. 我将NetBeans 8.0和JDK 1.7.0_51用作默认平台,并且我也没有任何JavaFX选项卡,但是我可以使用JavaFX项目。 I can load for example one of the samples for JavaFX:DigitalClock. 例如,我可以加载JavaFX:DigitalClock的示例之一。 I can build it and run it. 我可以构建并运行它。

The tutorial you point to refers to Netbeans 7.3. 您指向的教程引用了Netbeans 7.3。 Also the second of the first two notes says: 前两个注释中的第二个也说:

If you are using NetBeans IDE 7.4, you do not need to 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 (JDK 7 Update 10 or newer is strongly recommended). See NetBeans IDE 7.4 Release Notes for details.

EDIT: This is from NetBeans IDE 8.0 Release Notes : https://netbeans.org/community/releases/80/relnotes.html#javafx 编辑:这是从NetBeans IDE 8.0 Release Noteshttps : //netbeans.org/community/releases/80/relnotes.html#javafx

- The JavaFX SDK is not bundled with the NetBeans IDE 8.0 release.
- The JavaFX 2.2 SDK (and newer) is bundled with the latest JDK 7 for Windows, OS X and Linux. You can install the JavaFX 2.2.51 SDK together with Java SE Development Kit 7u51 as a co-bundled product.
- The JavaFX 8 SDK is bundled with JDK 8 for Windows, OS X and Linux. You can install the JavaFX 8 SDK together with Java SE Development Kit 8 as a co-bundled product.
- 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 (JDK 7 Update 10 or newer is strongly recommended).

You can add jfxrt.jar as an external jar/lib, that will enable you to use JavaFX APIs. 您可以将jfxrt.jar添加为外部jar / lib,这将使您能够使用JavaFX API。 In JDK8 jfxrt is included by default. 在JDK8中,默认情况下包括jfxrt。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM