# Mac JDK8 JavaFX

Because there are some Java 8 JDKs/JREs that don't include JavaFX, it is marked as non-portable in MacOS. You don't want to use any such JDK/JRE, so fix it. This is easy to fix.

- Right-click or Control-click on the Project, select `Build Path -> Configure Build Path`.
- Select the `Libraries` tab. Select and "drill down into" the JDK you are using.
- Select `Access Rules`. Click `Edit`
- In the resulting dialog, click `Add`
- Set the `Resolution` chooser from `Forbidden` to `Accessible` And enter the string `javafx/**` in the `Rule Pattern` field.
- Click `OK` several times until you get back to the project.

Now we have to tell Eclipse to compile the JavaFX files. The easiest way is to delete the line referring to them in the POM file, and tell Eclipse to use Maven to update the project. If you don't use Maven, you could do this manually, in the build path, but then when you do start using Maven your changes will get overwritten.

The JavaFX files should now compile.