Using JavaFX with JDK 11 in Eclipse 2018-12

(For Introduction to Programming Using Java, Version 8.0)


With the release of Java 11, JavaFX was removed from Java and from the Java Development Kit. As of the December 2018 release of the Eclipse IDE, Eclipse fully supports Java&nbs;11. The question is, how to easily use JavaFX in that environment (for students using this textbook, in particular). The goal to make JavaFX automatically available in all projects in a given workspace. This can be accomplished by setting up the Preferences for the workspace, as shown in the image at the bottom of this page. The following downloads were used:

After starting up Eclipse 2018-12, and opening the workspace that I intended to use for JavaFX development, I configured the workspace as follows, and as shown in the image below:


Setting up JavaFX with Java 11 and Eclipse 2018-12