Hello. I am learning to program in Java in my first-year University degree and would need some help from experienced people.
I am trying to run the JavaFX project on my Windows 10 machine using the recent jdk version 13.0.1. The Eclipse IDE that I am using is Eclipse Java 2019-09.
The error that I get seems to be a runtime error and it is:
Error: JavaFX runtime components are missing, and are required to run this application.
I am trying to run the following simple code which is in Main.java :
All I expect is that this code opens a blank window, but this error is persisting.
The JavaFX page indicated that there needs to be an environment variable PATH_TO_FX declared. I defined the environment variable PATH_TO_FX but it didn't work. It may be that I did not declare/define it at the correct place within Eclipse. The current locations in Eclipse are:
1) Window --> Preferences --> Build Path --> Classpath Variables
2) Project --> Properties --> Java Build Path --> Libraries --> ClassPath --> Add Variable
Any of the above has not worked so far and I would appreciate some advice on running this so that I can complete my assignment.