I have a simple project. It's not based on gradle or maven. My root folder is the name of my project and in it, it has multiple folders. Each folder is name after an assignment. Each assignment has its own main method in Java. When I created my first assignment, the main method was executing perfectly but now that I added a second assignment with its own main method, intellij idea has no idea what to do. I deleted the .idea and .iml, restarted intellij as others users suggested but that made things worse. I had to reimport the module to recreate the .iml files. I'm now back to first error message:
Cannot start compilation: the output path is not specified for module "Assignment2-UserLoginValidation".
Specify the output path in the Project Structure dialog.