'JDK doesn't support Java FX; netbeans

I've attached a screenshot. I was trying to open and run a template to get a feel for java graphics. Should I download a different JDK version?Screenshot

I've tried youtube and google for answers.



Solution 1:[1]

tl;dr

Download either ZuluFX or LibericaFX as your JDK.

Details

JavaFX has never been a part of standard Java SE.

To write and deploy a JavaFX app you must either:

  • Include a copy of the OpenJFX libraries within your app, or
  • Use a JDK that comes bundled with the OpenJFX libraries.

At least two vendors offer a JDK with OpenJFX bundled:

  • ZuluFX by Azul Systems
  • LibericaFX by BellSoft

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Basil Bourque