0

I keep on getting this error when I try to run the class that brings up the application

I have added VM Options: --module-path "C:\ProgramFiles\javafx-sdk-18\lib" --add-modules javafx.base,javafx.controls,javafx.graphics,javafx.media

I also get the error that "C:/ Program Files/Java/javafx-sdk-18" is not a valid directory for a JRE/JDK home

i have added both libraries as part of the project

  • Make sure the path to JavaFX lib folder is correct. Add a space between `Program` and `Files` and keep the path wrapped with double quotes. Also, try to create a project as per https://www.jetbrains.com/help/idea/2020.3/javafx.html . – Egor Klepikov Apr 08 '22 at 08:45

0 Answers0