If you chose Option 1, create a new Class that has a main method.
If you chose Option 2, use the class you already created with main method.
At the top of your driver, add the following import statement:
import javafx.application.Application;
If your code compiles, JavaFX is installed correctly.
If you get an error saying "Access restriction: The type 'Application' is not API…"
then follow the directions at the bottom of Page D
Need help?
- Option 1 video
- Option 2 full directions and video
Last modified: March 01, 2023
Back to Option 2: Use A Recent Jdk