Error occurred during initialization of boot layer java.lang.module.FindException: Module com.examplee.keyevents not found
已回答

This is the error I am getting and I din't even start to code

I have also added the vm options
I have included all the jar files
I am using java sdk 24
请先登录再写评论。
Hi, I don't think you need so complex setup as you've already using Gradle so no need to download a JavaFx SDK.
There is official sample: https://github.com/openjfx/samples/tree/master/IDE/IntelliJ/Modular/Gradle .
Please also check if these links helps:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/25648633350290-Trouble-debugging-Java-FX-21-app
Using JDK 24:
https://youtrack.jetbrains.com/articles/SUPPORT-A-860/How-to-fix-JavaFX-running-crash-issue-NSInternalInconsistencyException-on-macOS