I have created a project, Inside the Project, there One source folder, have taken name as feeding, created packages, classes, module-info.java file into it. After Then, Another source folder created, have taken name as care, created packages, classes, But while creating module-info.java into care folder facing issue duplicate module-info.java
Each Java module may only have one module-info.java file. Although you have two source folders, they still form one module. You instead need to create two separate modules. I haven't created any non-Maven modules, so I can't tell you how to do this in a non-Maven project. Maybe you even can't and you need to create two separate projects.
Hello Jj Roberts, I am sharing a screenshot of the project, Here, If I am trying to add module-info.java file then the project getting elapsed means project even not opening, trying to open in type hierarchy then showing Duplicate module-info.java. Please have a concern.
Sorry it has taken me so long to get back to this.
I'm not sure what you are referring to by STS, but it looks like you are using Eclipse. Eclipse requires you to create a new project for each module. It is possible to create a nested project in Eclipse, where you would have a parent project containing all of your module projects, but I doubt you need that. IntelliJ and Netbeans do allow multi-module projects.
Thank you my well lotioned goddess! Here, have my favorite tiny ad!