# 将 IntelliJ IDEA 项目导出到 Eclipse

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com.cn/help/idea/llms.txt).

在开始导出项目之前，请确保 Eclipse Integration 插件 [enabled](managing-plugins.html)。

> **Note:**
> 目前，从 IntelliJ IDEA 迁移到 Eclipse 受某些限制的影响：
>
>
>
> * 具有多个内容根的 IntelliJ IDEA 模块无法迁移。
>
> * Eclipse 中的外部源不会被迁移。
>
> * 在导出过程中，仅 Java 模块会自动创建。 然而，任何模块都可以手动转换为兼容 Eclipse 的格式。
>
> * 默认工作区 JRE 不会与项目 SDK 相互转换。

Procedure: 将项目导出到 Eclipse

当您将 一个 IntelliJ IDEA 项目导出到 Eclipse 时，会为每个模块文件  `.project`  和  `.classpath`  创建 Eclipse 项目文件，并在包含内容根的模块目录中生成  `.iml` 。

1. 在主菜单中，前往  `文件 | 导出 | 项目到 Eclipse…` 。

导出到 Eclipse   对话框显示尚未转换并切换到使用 Eclipse 格式的模块列表（具有 IntelliJ IDEA 模块格式的模块  `.iml` ）。

![将项目导出到 Eclipse](https://resources.jetbrains.com.cn/help/img/idea/2026.3/export-to-eclipse.png)

2. 选择您要导出的模块。

3. 如有必要，选择建议的选项：

* 将选定模块转换为与 Eclipse 兼容的格式 ：将 要导出的模块 中选择的模块转换为兼容 Eclipse 的格式。

* 导出非模块库 ：IntelliJ IDEA 为 Eclipse 创建一个用户库配置文件 `*.userlibraries` ，其中包含项目中使用的所有外部库的定义。

* 结果 .userlibraries 的路径 ：生成的 `*.userlibraries` 文件的路径。 当选择 导出非模块库 选项时，此字段可用。

4. 点击   OK  。

项目导出到同一目录。 项目工具窗口显示新创建的 Eclipse 文件。

![该项目被导出到 Eclipse](https://resources.jetbrains.com.cn/help/img/idea/2026.3/export-to-eclipse-result.png)

Procedure: 将模块转换为与 Eclipse 兼容的格式

1. 在主菜单中，前往  `文件 | 项目结构`  `Ctrl+Alt+Shift+S` (Windows), `⌘ ;` (macOS), `⌘ ;` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ Comma` (macOS System Shortcuts), `Ctrl+Alt+Shift+S` (XWin), `Ctrl+Alt+Shift+S` (GNOME), `Ctrl+Alt+Shift+S` (KDE), `Ctrl+Alt+Shift+S` (Emacs), `Ctrl+Alt+Shift+S` (Sublime Text), `⌘ ;` (Sublime Text (macOS)), `Ctrl+Alt+Shift+S` (Visual Studio), `⌘ ;` (Visual Studio (macOS)), `Ctrl+Alt+Shift+S` (NetBeans), `Ctrl+Alt+Shift+S` (Eclipse), `⌘ ;` (Eclipse (macOS))。

2. 选择您要转换的模块并切换到   依赖项  标签。

3. 从   依赖项存储格式   列表中选择   Eclipse（.类路径）  。

4. 应用更改并关闭对话框。

![将模块转换为 Eclipse](https://resources.jetbrains.com.cn/help/img/idea/2026.3/convert-module-to-eclipse.png)

## See also

### 过程

[从 Eclipse 迁移到 IntelliJ IDEA](migrating-from-eclipse-to-intellij-idea.html)

