Modularizing a Java Project in Eclipse
I have four Java packages in Eclipse: augustus, caligula, julius, and nero. I want to place augustus and caligula in a JPMS module. I want to place julius and nero in another module. How do I go about doing that?
I tried creating a “Module1” folder under the “src” source folder to hold augustus and caligula. And I tried creating a “Module2” folder under “src” source folder to hold julius and nero. However, these folders are automatically turned into packages in Eclipse.
Then I tried creating a “Module1” source folder to hold augustus and caligula. And I tried creating a “Module2” source folder to hold julius and nero. However, it seems Eclipse allows only one module-info.java file. In other words, I can’t put a module-info.java file in each source folder.
Read more here: Source link
