I'm encounter a java.lang.NoClassDefFoundError and I don't know why it's occuring
Try adding arguments:
compile
javac --module-path /path/to/java-fx-libs/ --add-modules javafx.controls,javafx.fxml *.java
run
java --module-path /path/to/java-fx-libs/ --add-modules javafx.controls,javafx.fxml MyMainClass
In eclipse I think you need to navigate to Menu: Window > Preferences > Java > Compiler
How to Fix NoClassDefFoundError in JavaFX?
I think JavaFX is not a part of the JDK > 9 any more. (Your version is 12.x.x)
Probably this could help you:
https://openjfx.io/openjfx-docs/#install-javafx
(Assuming you are using Maven) If this does not help, try to clean and build your Application.
Sometimes Maven does not recognize newly added dependencies.
Related Topics
Can an Interface Extend Multiple Interfaces in Java
Java Implementation of JSON to Xml Conversion
String Variable Interpolation Java
List All Files in the Folder and Also Sub Folders
Websphere All Logs Are Going to Systemout.Log
How to Intercept a Method Invocation with Standard Java Features (No Aspectj etc)
Why Are Exceptions Not Checked in .Net
What Does an Integer That Has Zero in Front of It Mean and How to Print It
Javafx Entirely Customized Windows
Could Not Serialize Object Cause of Hibernateproxy
Count Occurrences of Words in Arraylist
Java Serialization - Java.Io.Invalidclassexception Local Class Incompatible
Gson.Tojson() Throws Stackoverflowerror
Java User.Home Is Being Set to %Userprofile% and Not Being Resolved