I use IDEA ( v14 Community Edition ). I need to import projects from Eclipse (several pieces connected to one another). I created a project (a separate folder on the disk) and plugged in modules ( Eclipse projects).

Now, when compiling the IDEA project, all the *.class files fall into the default folder of the created project. It can be changed, but it seems to work anyway for all modules. The project builder is configured to source for class files in the personal folders of each module.

How to configure the compilation of the IDEA project so that the class files of each module fall into their personal folders?

  • If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky

2 answers 2

File -> Project structure (Ctrl + alt + shift + S) -> Modules . For each module, select the Paths tab and select the Use module compile output path . And expose the way in which you have to compile classes (for tests and sources)

    Perhaps I did not give complete information.

    Type of the project:

    project view in IDEA

    view in the structure menu: view of the menu structure + The Content Root (src projects) has been added to the project, and the Paths tab applies to the entire project, and personal editing is possible only for the Content Root. If you add Eclipse projects to my_project separately ("+" at the top left), then the paths to the source code from the Content Root will disappear (or not?). and how in this case will the compilation go - separately for each added or all that is written in 1 pass? Perhaps you need to remake the structure of the project? if so, how?