javascript – IntelliJ java.lang.module.FindException module not found error

I was working on a multi module project in IntelliJ with SDK 16 and had added JavaFX 17 as a library.

I have added the required VM option –module-path “/Users/joseph/Documents/MY-FILES/PERSONAL/APPS/JAVA/JavaFX_SDK/javafx-sdk-16/lib”
–add-modules javafx.controls,javafx.fxml

Each module I have as a module-info file in which I have the exports and requires set.

The issue is with my “ModuleTest” module I have created to use for testing the other modules.

I keep on getting the error “java.lang.module.FindException: Module ModuleTest not found”. Below is the full detail:

/Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home/bin/java –module-path /Users/joseph/Documents/MY-FILES/PERSONAL/APPS/JAVA/JavaFX_SDK/javafx-sdk-17/lib –add-modules javafx.controls,javafx.fxml -Djava.library.path=/Users/joseph/Documents/MY-FILES/PERSONAL/PROJECTS/GITHUB-RIPO/COMMON-LIBS/OpenCV/OpenCV-Compiled/Binary:/Users/joseph/Documents/MY-FILES/PERSONAL/APPS/JAVA/JavaFX_SDK/javafx-sdk-17/lib -javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=49620:/Applications/IntelliJ IDEA CE.app/Contents/bin -Dfile.encoding=UTF-8 -m ModuleTest/MissionManagementTEST.MissionManagementTEST

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

Process finished with exit code 1

I have tried changing the output directory to be the same as that of the JavaFX SDK lib folder as advised by some but had no luck. The issue is not with just JavaFX SDK 17 but also with 16. Any one run in to the same problem?