Cannot start compilation: the output path is not specified for module Specify the output path in the Project Structure dialog.

Answered

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.

3 comments
Comment actions Permalink

Please make sure you've set "Project Compiler output" (https://i.imgur.com/7AUQJ6w.png) for the project in question and "Compiler output"  for module (https://i.imgur.com/7uBtjVd.png) in Project settings. 

Share the sample project (with the `.idea` directory included) in case it does not help. 

 

0
Comment actions Permalink

Same problem. Ruby on Rails project. This image (https://i.imgur.com/7uBtjVd.png)) does not exist under a Rails project. Frustrated.

I need EXPLICIT instructions on how to setup remote debugging for a Ruby on Rails project with Intellij ultimate.

0
Comment actions Permalink

Alfonso Rush, you can set the 'Project Compiler output' on File - Project Structure - Project Settings - Project.

0

Please sign in to leave a comment.