Eclipse RCP:未找到应用程序 ID
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13575695/
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
Eclipse RCP: No application id has been found
提问by Neil Sainsbury
I'm attempting to create an Eclipse RCP application for the first time and so am following the Vogella tutorial here: http://www.vogella.com/articles/EclipseRCP/article.html
我第一次尝试创建一个 Eclipse RCP 应用程序,所以我在这里关注 Vogella 教程:http://www.vogella.com/articles/EclipseRCP/article.html
Per the steps I've created a new Eclipse 4 Application Project using all the default settings, yet when I click on "Launch an Eclipse application" I get an exception. In the error log it lists multiple bundles that could not be resolved and then at the end of the log there is a RuntimeException: No application id has been found.
按照步骤,我使用所有默认设置创建了一个新的 Eclipse 4 应用程序项目,但是当我单击“启动 Eclipse 应用程序”时出现异常。在错误日志中,它列出了多个无法解析的包,然后在日志的末尾有一个 RuntimeException: No application id has been found。
I have not varied at all from the steps listed in the tutorial/defaults. Any ideas what's going on here?
我完全没有改变教程/默认值中列出的步骤。任何想法这里发生了什么?
回答by Neil Sainsbury
Shortly after posting, I found the specific magical incantation to fix this.
发布后不久,我找到了解决此问题的特定魔法咒语。
What you need to do is go to your Run Configurations (Run -> Run Configurations). Select the Plug-ins tab and then hit "Add Required Plug-ins". Apply, then Run, and it should work now.
您需要做的是转到您的运行配置(运行 -> 运行配置)。选择插件选项卡,然后点击“添加所需的插件”。应用,然后运行,它现在应该可以工作了。
Interestingly enough, it seems to forget this change with some regularity (bug here) and so you may need to do this often before launching :-(
有趣的是,它似乎有规律地忘记了此更改(此处为错误),因此您可能需要在启动之前经常执行此操作:-(
回答by vogella
I added a list of common problems with starting your product to the tutorial mentioned. Find it here: Eclipse RCP checklist for common launch problems
我在提到的教程中添加了启动产品的常见问题列表。在此处查找:常见启动问题的 Eclipse RCP 检查表
Please note that modifying the launch configuration is the wrong solution, as your application will fail starting after the export.
请注意,修改启动配置是错误的解决方案,因为导出后您的应用程序将无法启动。
回答by Achim Schmitz
This may be the result of using a different version of eclipse (not sure). I hadf the same error. When I tried to alter the run config as described, I found no button, checkbox or anything else that stated "Add required plug-ins". What I did find, however, was a drop down list at the top of the plug-ins tab.
这可能是使用不同版本的 eclipse(不确定)的结果。我有同样的错误。当我尝试按照所述更改运行配置时,我没有发现任何按钮、复选框或任何其他说明“添加所需插件”的内容。但是,我确实找到了插件选项卡顶部的下拉列表。
Launch with:
启动:
- all workspace and enabled target plug-ins
- plug-ins selected below only
- features selected below only
- 所有工作区和启用的目标插件
- 仅选择以下插件
- 仅选择以下功能
Mine was set to option 2. I switched to option 1 and clicked "Apply". The error went away, though the resulting RCP window didn't contain the expected list... but I suspect that's another problem altogether.
我的设置为选项 2。我切换到选项 1 并单击“应用”。错误消失了,尽管生成的 RCP 窗口不包含预期的列表……但我怀疑这完全是另一个问题。
回答by bookhuntress
I clicked the "Add Required Plug-ins" button but for some reason, it did not solve the "No application id has been found" problem.
我单击了“添加必需的插件”按钮,但由于某种原因,它没有解决“未找到应用程序 ID”的问题。
What worked for me is the solution found here, which is:
对我有用的是这里找到的解决方案,即:
- Go 'Run > Run Configurations...'
- Choose your run configuration
- Click on 'Plug-ins' tab
- Add plug-ins below:
- 转到“运行>运行配置...”
- 选择您的运行配置
- 单击“插件”选项卡
- 添加插件如下:
org.eclipse.core.net
org.eclipse.core.net
org.eclipse.ui.ide.application
org.eclipse.ui.ide.application
回答by Stefan
The reason why Neils solution is forgotten by Eclipse is, that Eclipse overrides the Run Configuration when ever you launch your product from the *.product file. Therefore the solution is to adapt the dependencies in the *.product file instead of the Run Configuration. Moreover I would recommend to always launch Eclipse RCP projects from the *.product file, to avoid problems with changed configurations.
Eclipse 忘记 Neils 解决方案的原因是,当您从 *.product 文件启动产品时,Eclipse 会覆盖运行配置。因此,解决方案是调整 *.product 文件而不是运行配置中的依赖项。此外,我建议始终从 *.product 文件启动 Eclipse RCP 项目,以避免更改配置时出现问题。
回答by Paramita G
Somthing that worked for me is using eclipse Photon ...so check the version that supports.
对我有用的东西是使用 eclipse Photon ...所以检查支持的版本。
回答by Campa
For those who cannot run even after adding all required plugins, I got this error also when the JRE System Libraryconfigured in Run Configurationswas not satisfying the minimum execution environment of the plugin (--> plugin.xml|| Bundle-RequiredExecutionEnvironmentin manifest).
对于那些即使把所有需要的插件后,谁也不能跑,我得到这个错误也当JRE系统库中配置的运行配置并没有满足插件的最低执行环境( - > plugin.xml中||捆RequiredExecutionEnvironment清单中)。