I am trying to get to know and work with JavaFX using the DrJava IDE. However I cannot run any of the programs. I tried running the Hello World example, I receive the following error: Static Error: Undefined Class HelloWorld
. It will compile and everything, but just will not run. Anyone know why?
Not sure if you ever got your answer, but for anyone coming here wanting to use JavaFX in DrJava:
Download JavaFX: openjfx.io
Remember where you downloaded it to
Open DrJava
Open preferences under the Edit tab in the top left
In the resource locations category, click add
Enter the JavaFX SDK folder and go to lib
From there highlight every .jar file, press select and apply!