You should also check which version Eclipse is currently using. To do this, go to Preferences --> Java --> Installed JREs
To find out which versions of Java you have installed
Open a new Finder window
Click on Applications
At the top middle of the window, right-click "Applications"
A drop-down menu should appear. Select your computer's hard drive (probably called Macintosh HD)
Open the Library folder and then open the Java subfolder
Open the JavaVirtualMachines subfolder.
Finally, inside that folder you can see a list of the Java versions you have installed.
If you want to use Java 8, which comes bundled with JavaFX, make sure that you see something like jdk-1.8.121.jdk installed. The important part is jdk-1.8. If you don't have JDK 8, install it here. (Follow the directions to create an account as needed)
You should also check which version Eclipse is currently using. To do this, go to Preferences --> Java --> Installed JREs
Last modified: February 27, 2023
Back to Installing Javafx