Neil
Neil

Reputation: 6039

Unable to setup JavaFx platform in Netbeans

I am using JDK 8 Early access (Build 90) with Netbeans 7.3 in windows but while enabling JavaFx in Java platform it says JavaFx platform is not correctly defined. I tried to give the jre8 path but still the error continues. The error is not shown when I set the JavaFx runtime to JRE 1.7 but in that case my JavaFx code is compiled by JDK8 but it tried to run using JRE7 ending up with incomparable class version error .

Note that I need to use JDK 8 for my experimental project which needs some latest features , so moving back to JDK 7 is not an option. Also Running the jar separately in command line every time I compile using netbeans will take a lot of time reducing productivity.

enter image description here

Upvotes: 1

Views: 3592

Answers (1)

jewelsea
jewelsea

Reputation: 159291

NetBeans 7.3 doesn't support JavaFX 8.

NetBeans 7.3 is incompatible with JavaFX 8 because it looks for the JavaFX classes in the wrong place. See this JavaFX mailing list post for details. There is a corresponding bug in NetBeans to fix it to look for JavaFX classes in a new location, but it was not deliberately not addressed in NetBeans 7.3 (I can't find the bug in the NetBeans bug tracker to reference here, but I recall seeing it earlier).

I have managed to hack some of the NetBeans 7.3 configuration so that it can be used to develop JavaFX 8, but I don't want to publish that here because the hack is too fragile to be worthwhile.

On Oracle JavaFX forums (thread: which IDE for JavaFX 8), other users have reported success using a NetBeans nightly build with JavaFX 8, though I haven't tried that configuration.

Upvotes: 2

Related Questions