logo.jpg
Casey Bowman
     

First of all, you will need to have the latest JDK, which is version 1.8. The following steps should work if Eclipse is complaining that it cannot find or access "jfxrt.jar":

  1. Locate jfxrt.jar in folder "C:\Program Files\Java\jdk1.8.0_**\jre\lib\ext\jfxrt.jar" (the ** means there is a version number here, which isn't the same for everyone)
  2. Copy and paste jfxrt.jar into your project folder "...\workspace\*ProjectName*\" (wherever this is located on your machine)
  3. Go to Eclipse and open your project
  4. On the top menu click on "Project" and click on "Properties" in the drop-down menu
  5. Click on "Java Build Path" in the left-hand menu.
  6. Click on "Add External JARS..."
  7. In the browser window that opens, navigate to your project folder and select jfxrt.jar and click "open"
  8. Click "OK"

The import errors in your code should now be fixed.