How do I run an Eclipse launcher file in IntelliJ IDEA?
I have a Eclipse 开发者_JAVA技巧.launch
file 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.
I want to be able to run this file in IntelliJ IDEA but is there an automatic way without manually creating the settings?
Try the Eclipser plugin
http://plugins.jetbrains.com/plugin?pluginId=7153
Eclipser will automatically convert Eclipse launch configurations into IntelliJ IDEA configurations
However it currently (as of November 2014) supports only very limited number of launch types:
- local Java application (...)
- program launch (...)
- Maven launcher (...)
See https://github.com/kukido/eclipser/wiki for details.
IDEA doesn't support importing Eclipse .launch files.
A workaround is to use the third-party Eclipser plug-in.
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
steps to launch eclipse launcher in intellij
- download the plugin
- install it in intellij
- restart intellij
- right click .launch
- click "convert with eclipser"
- check run/debug configurations, an new application process should be added
- check working directory is correct or not, if not fix it
- run that process, eclipse launcher can be executed
For thouse, who wants to launch .product file in idea - see this manual
精彩评论