How to Fix Java.Lang.Module.Findexception: Module Java.Se.Ee Not Found

java.lang.module.FindException: Module not found

You're getting that error because you didn't include its path in your VM options. All you have to do is find out where your code is outputting to and add that path to any existing ones such as this one:

--module-path "<your-path>" --add-modules javafx.controls,javafx.fxml

It looks like your project's output directory is "out" (more than likely under productions) but you can always double check this by going to File -> Project Structure -> Project -> Project compiler output and then figure out where your module is located from there (in your case you'd be looking for HotelBookingSystemTest1). After copying its address and adding it to the code above it should look something like this:

--module-path "<your-path>;<copied-address>" --add-modules javafx.controls,javafx.fxml

Here is one of my paths for reference, although in this case my output directory was "classes":

--module-path "C:\Program Files (x86)\JavaFX\javafx-sdk-16\lib;C:\Users\ethan\Documents\Code\GeneralPlanner\classes\production" --add-modules javafx.controls,javafx.fxml

Also make sure the SDKs in your run configuration and module settings are the same. If it gives you an error about the sql connector or any other module not found, be sure to add their paths to the existing ones as well (same way with the semicolon).

java 13 eclipse: java.lang.module.FindException: Module AbaloneGame not found

Your module path seems to be set wrong.

Try to change the module name in the module-info.java file to the correct path.

Another way may to eliminate this is to go to the PROJECT folder → src → Default package. Keep only one class (in which you had written code) and delete others.



Related Topics



Leave a reply



Submit