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 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.

10

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.

1

Modules were introduced in Java 9.

Reference:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest