Don’t use the latest Java 11. For whatever reason, Oracle decided to not bundle JavaFX with it.
If you really what to use Java 11, you’ll need to download and install JavaFX separately. I’ll leave you to google the instructions on how to do that.
Use JDK 10.0.2. It has JavaFX built in and is what is installed in our labs.
If you already installed Java 11, uninstall it entirely.
Download JDK 10.0.2. Since Oracle is pushing the latest and greatest Java 11, you’ll need to jump through some hoops to get it. Here’s how:
- Go to the JDK download page.
- At the bottom of the page, there’s a Java Archive. Click that.
- Select Java SE 10
- You may need to create an account to download it. Go ahead; it’s safe.
You’ll have a much better JavaFX experience!