1

I've set the correct launch options in the .json file to my knowledge. I've imported the .jar files of java fx to the referenced libraries folder in VS Code but don't understand why I'm receiving this error. I have imported javafx.controls to the reference library, but still get this error.

Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found

My code is fine with no yellow or red underlines and should compile and run but it is not.

James Z
  • 12,209
  • 10
  • 24
  • 44

1 Answers1

0

There's no JavaFX and VS Code from its official tutorial, but for all IDEs in Windows, the VM options is like enter image description here

You may follow this answer to check if there's any environment configuration missed to cause this error.

Molly Wang-MSFT
  • 7,943
  • 2
  • 9
  • 22