user3262133
user3262133

Reputation: 41

JavaFX stuff won't reference

I don't think I can explain it well, but here it goes.

It seems that anything referencing something JAVAFX specific, fails... I think.

It's not the code because its common examples from the internet on how to make a sample javafx program.

enter image description here

enter image description here

Upvotes: 0

Views: 154

Answers (1)

Michael Berry
Michael Berry

Reputation: 72254

You need to add jfxrt.jar to your path, or enable JavaFX support for your chosen platform in Netbeans.

(In Netbeans), right click on your project, go to properties, click libraries, then manage platforms, then if you have a JavaFX tab there, click on it and select "enable JavaFX".

If you don't have that tab, then exit out of the platform manager, click "Add Jar/Folder", and then navigate to jfxrt.jar (usually in jre/lib in your jdk installation directory) to add it that way.

Upvotes: 1

Related Questions