如何在 IntelliJ IDEA 中运行 Eclipse 启动器文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5389446/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 16:01:58  来源:igfitidea点击:

How do I run an Eclipse launcher file in IntelliJ IDEA?

eclipseintellij-idealaunch

提问by algolicious

I have a Eclipse .launchfile that a developer has created to set up the classpath, vm and program arguments from a XML file that Eclipse uses to launch the program.

我有一个.launch开发人员创建的 Eclipse文件,用于从 Eclipse 用来启动程序的 XML 文件中设置类路径、vm 和程序参数。

I want to be able to run this file in IntelliJ IDEAbut is there an automatic way without manually creating the settings?

我希望能够在IntelliJ IDEA 中运行此文件,但是否有一种无需手动创建设置的自动方式?

采纳答案by CrazyCoder

IDEA doesn't supportimporting Eclipse .launch files.

IDEA不支持导入 Eclipse .launch 文件。

A workaround is to use the third-party Eclipser plug-in.

一种解决方法是使用第三方Eclipser 插件

Eclipser can convert the following Eclipse launch configurations into IntelliJ IDEA run configurations:

  • Local Java application Eclipse launcher
  • Program launch Eclipse launcher (converted into external tool in Tools menu)
  • Maven launch configuration
  • Remote Java application Eclipse launcher
  • Ant launch configuration

Eclipser 可以将以下 Eclipse 启动配置转换为 IntelliJ IDEA 运行配置:

  • 本地 Java 应用程序 Eclipse 启动器
  • 程序启动 Eclipse 启动器(在工具菜单中转换为外部工具)
  • Maven 启动配置
  • 远程 Java 应用程序 Eclipse 启动器
  • 蚂蚁启动配置

回答by Jean-Michel Garcia

Try the Eclipser plugin

试试 Eclipser 插件

http://plugins.jetbrains.com/plugin?pluginId=7153

http://plugins.jetbrains.com/plugin?pluginId=7153

Eclipser will automatically convert Eclipse launch configurations into IntelliJ IDEA configurations

Eclipser 会自动将 Eclipse 启动配置转换为 IntelliJ IDEA 配置

However it currently (as of November 2014) supports only very limited number of launch types:

然而,它目前(截至 2014 年 11 月)仅支持非常有限的启动类型:

  • local Java application (...)
  • program launch (...)
  • Maven launcher (...)
  • 本地 Java 应用程序 (...)
  • 程序启动(...)
  • Maven 启动器 (...)

See https://github.com/kukido/eclipser/wikifor details.

有关详细信息,请参阅https://github.com/kukido/eclipser/wiki

回答by dchan

steps to launch eclipse launcher in intellij

在intellij中启动eclipse启动器的步骤

  1. download the plugin
  2. install it in intellij
  3. restart intellij
  4. right click .launch
  5. click "convert with eclipser"
  6. check run/debug configurations, an new application process should be added
  7. check working directory is correct or not, if not fix it
  8. run that process, eclipse launcher can be executed
  1. 下载插件
  2. 安装在intellij
  3. 重启智能
  4. 右键单击 .launch
  5. 点击“用eclipser转换”
  6. 检查运行/调试配置,应添加新的应用程序进程
  7. 检查工作目录是否正确,如果没有修复它
  8. 运行该进程,可以执行eclipse启动器

回答by burduk

For thouse, who wants to launch .productfile in idea - see this manual

对于thouse,谁愿意推出。产品文件中的想法-见本手册