How to Get Rid of "Unrecognized Option: --Module-Path" Error in Eclipse?
I Am Getting the Following Error When I Run My Javafx Project. This Is My Eclipse. Ini File Run Configuration of This Project This Is the Command Used for Vm...
I am getting the following error when i run my JavaFX project.
This is my eclipse.ini file
Run Configuration of this project
This is the command used for VM arguemnts: --module-path "C:\Program Files\Java\jdk-15.0.2\bin" --add-modules javafx.controls,javafx.fxml
I have updated my eclipse from 2019-3 to 2020-12. Is there anything that i need to modify in eclipse.ini file?
I am using the following versions of libraries and IDE
Eclipse 2020-12
JDK 15
JavaFX 15.0.1
e(fx)clipse 3.6.0
I am new to this JavaFX. I have tried so many solutions explained in youtube and google but I couldn't overcome this error. I hope i could find an answer here.
2 Answers
I have updated my JRE version from 1.8.0_171 to 1.8.0_281
And I have rectified my VM arguments path too
--module-path "E:\eclipse\ javafx-sdk-15.0.1\lib" --add-modules = javafx.controls,javafx.fxml
Now It's working fine;)
P.S: Please refer to this JavaFX document for clear understanding.
Modules were introduced in Java 9.
Reference: