Good day!

Tell me how to correctly install JavaFX 11 (OpenJFX) in IDE Eclipse? Specifically, the problem is that after installing Oracle JDK11 and Eclipse, and adding the JavaFX library to the project (Properties - Java Build Path - Libraries - Add External Jar), ​​the IDE produces the following error when compiling:

Error: Could not find or load main class tst.Main Caused by: java.lang.NoClassDefFoundError: javafx/application/Application 

Do I add this library to the project correctly? It is in the project that you need to add it, or somehow "integrate" directly into the system / JDK. What is the reason for this error?

PS I just started learning programming, so I apologize right away for a stupid question.

0