开发者

How to make my default JDK FX-enabled?

开发者 https://www.devze.com 2023-04-11 12:40 出处:网络
As I\'ve tried to create a Java FX 2.0 application project in NetBeans IDE 7.1 Beta, it said I have no FX-enabled JDK. I\'ve managed to set up an \"FX-enabled JDK\" folowing the instructions on how to

As I've tried to create a Java FX 2.0 application project in NetBeans IDE 7.1 Beta, it said I have no FX-enabled JDK. I've managed to set up an "FX-enabled JDK" folowing the instructions on how to create it manually (found here). But I neither need nor want to have multiple JDKs, I want the one and only to be "FX-enabled". Though, the default JDK NetBeans platform entry (referencing the very same JDK installatio开发者_JAVA百科n actually) even does not contain a Java FX tab in its settings. How to fix this?


Unfortunately in NB 7.1 Beta you can't have default JDK being FX enabled.

All new JavaFX projects will refer to Java Platfrom named "Default JFX Platform".


You just need to download and install the JavaFX 2.0 SDK from javafx.com, and it will work. It doesn't need any other JDK. It installs next to your already installed JDK.

After you have installed the JavaFX SDK you can create a new JavaFX application, and everything will be great.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号