IntelliJ IDEA 14.0.0 Web Help

Importing Eclipse Projects into IntelliJ IDEA

You can create a new project or module by importing an Eclipse project or workspace into IntelliJ IDEA. In IntelliJ IDEA each imported Eclipse project is represented by a module.

Alternatively, you can create a project by opening an Eclipse project or workspace in IntelliJ IDEA. In comparison with importing, this way of creating a project is quicker, however, you are offered less options for configuring the resulting project.

IntelliJ IDEA can keep the module files and the corresponding Eclipse project files synchronized. This is useful when a development team uses both IntelliJ IDEA and Eclipse.

See also, IntelliJ IDEA vs Eclipse Terminology.

To import an Eclipse project into IntelliJ IDEA

  1. Do one of the following:
    • If you are going to create a new project: click Import Project on the Welcome screen or select File | Import Project.
    • If you are going to import an Eclipse project into an existing IntelliJ IDEA project: open the project if interest, and select File | Import Module.
  2. In the dialog that opens, select the necessary Eclipse project or workspace directory, or the corresponding .project or .classpath file. Click OK.

    As a result, the Import Project or the Import Module wizard opens. (See Import Project or Module Wizard.)

  3. On the first page of the wizard, select Import project from external model or Import module from external model, then select Eclipse and click Next. (This page is not shown if IntelliJ IDEA has guessed that you are importing an Eclipse project or workspace.)
  4. On the next page of the wizard, specify:
    1. The directory that contains the Eclipse project or workspace to be imported.
    2. Where the IntelliJ IDEA project and module files should be created.
    3. The IntelliJ IDEA project format.
    4. Whether the IntelliJ IDEA module file or files should be kept synchronized with the corresponding Eclipse project file or files.
    5. Whether and how test sources are to be looked for.

    Click Next.

  5. If you are importing more than one Eclipse project (e.g. an Eclipse workspace), select the Eclipse projects you want to import on the next page of the wizard, and click Next.
  6. If suggested, specify the project SDK and click Next.
  7. The next page of the wizard shows the frameworks and technologies detected in your Eclipse project or projects. Select the ones that you want to be enabled and click Finish.

To open an Eclipse project

  1. If no project is currently open in IntelliJ IDEA, click Open on the Welcome screen. Otherwise, select Open from the File menu.
  2. In the dialog that opens, select the necessary Eclipse workspace or project folder, or the corresponding .project or .classpath file. Click OK.
  3. If the following dialog is displayed:
    open_eclipse_project

    Click Yes to create and open the project. Click No to open the file in the editor.

See Also

Last modified: 12 November 2014
comments powered by Disqus