Eclipse 不加载 dropins 文件夹中的插件
我刚刚下载了 Eclipse SDK 3.5.1,想要安装一些附加组件,例如 GEF、EMF 等。
我下载了所需的所有 zip 文件,并决定将它们安装在 dropins 文件夹中。我阅读了 http://wiki.eclipse.org/Equinox_p2_Getting_Started 并按照指定构建了我的 dropin 文件夹:
eclipse/
dropins/
emf/
eclipse/
features/
plugins/
gef/
eclipse/
features/
plugins/
... etc ...
当我启动 Eclipse 它无法识别我放入上述结构中的任何功能或插件。有什么想法吗?
I just downloaded Eclipse SDK 3.5.1 and want to install some add ons such as GEF, EMF, etc.
I downloaded all the zip files for everything I needed and decided to install them in the dropins folder. I read http://wiki.eclipse.org/Equinox_p2_Getting_Started and structured my dropin folder as specified:
eclipse/
dropins/
emf/
eclipse/
features/
plugins/
gef/
eclipse/
features/
plugins/
... etc ...
When I start up Eclipse it does not recognize any of the features or plugins I have put into the structure above. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
我遇到了类似的问题,因此我向 Eclipse 社区论坛发布了一个问题,询问如何获取有关缺失依赖项的报告。对于那些不是该论坛成员的人来说,Mickael Istria 的有用回复如下所示:
您可以启动或诊断 OSGi 控制台并尝试手动启动捆绑包。控制台会打印一些警告。请参阅 http://eclipse.org/equinox/documents/quickstart.php 并了解更多细节。
就我而言,我尝试了几种我认为应该有效的目录结构,然后找到了一种有效的目录结构:
更新
几年后回来解决类似的问题,我发现以下网页很有帮助: 我的捆绑包在哪里, 不会从 dropins/ 文件夹中获取插件。
I had a similar problem, so I posted a question to the Eclipse Community Forums asking about how to get a report about missing dependencies. Mickael Istria's helpful reply is shown below for those who aren't members of that forum:
You can start or diag the OSGi Console and try to start the bundle manually. The console will print you some warnings. See http://eclipse.org/equinox/documents/quickstart.php and for more details.
In my case, I tried several directory structures that I thought should work, before I found one that did:
Update
Coming back years later to solve a similar problem, I found the following web pages to be helpful: Where is My Bundle, Plug-ins are not picked up from the dropins/ folder.
首先,使用 -clean 运行 eclipse 以确保 p2 完全重新扫描 dropins 目录并看到您的插件。
如果仍然无法加载,您可以使用 p2 调试来查看问题所在。由于某些奇怪的原因,p2 不会记录 dropins 问题,除非您通过以下步骤显式打开它:
在启动 Eclipse 的
eclipse
文件夹中创建一个.options
文件包含以下内容:然后使用以下参数运行 eclipse(最后一个参数是您刚刚创建的 .options 文件的路径):
PS,我已经创建了 此 bugzilla 请求将其默认打开。您可以投票/跟踪,使此日志记录成为默认记录。
PPS,当您缩小了问题范围并希望对其进行更多故障排除时,@kc2001 的建议也是一个不错的建议。
一些相关链接:
First of all, run eclipse with -clean to ensure p2 fully rescans the dropins directory and sees your plugins.
If it still doesn't load you can use p2 debugging to see what the problem is also. For some strange reason p2 doesn't log dropins issues unless you explicitly turn it on with the following steps:
Create an
.options
file in theeclipse
folder where you start up Eclipse with the following content:Then run eclipse with the following arguments (last argument is the path to the .options file you just created):
PS, I have created this bugzilla to request it be turned on as a default. You can vote/track making this logging the default there.
PPS, @kc2001's suggestion is a good one also once you have narrowed down on what plugin has the issue and you want to troubleshoot it more.
Some relevant links:
我建议您尝试通过更新管理器安装这些功能。 EMF 和 GEF 是 Eclipse.org 的标准功能,没有理由不将它们安装在 Eclipse 的主 p2 存储库文件夹中(很容易卸载它们,以防您担心)。
查看错误日志视图(窗口 -> 显示视图 -> 错误日志)以了解它们未加载的原因。我的猜测是他们缺少依赖项,但如果没有更多信息,很难回答您的问题。我还建议查看帮助 ->关于 Eclipse ->安装详细信息以查看到底安装了什么。
I suggest that you try to install those features via the update manager. EMF and GEF are standard features from Eclipse.org, there's no reason not to install them in Eclipse's main p2 repository folder (it is easy to uninstall them, in case that is your concern).
Have a look at the error log view (Window -> Show View -> Error Log) to see why they didn't load. My guess is that they are missing a dependency, but without more information it is difficult to answer your question. I also suggest looking at Help -> About Eclipse -> Installation Details to see what exactly is installed.
刚刚为我解决了同样的问题:使用命令行参数 -clean -console -consoleLog 启动 eclipse。奇怪的是:使用 -clean -console 时,它不起作用。仅在我添加 -consoleLog 后,捆绑包才被识别。
Something that has just solved this very same issue for me: start eclipse with the command line parameters -clean -console -consoleLog. The weird thing: with -clean -console, it didn't work. Only after I added -consoleLog, the bundles were recognized.
这对我来说最终成为 Eclipse 的一个问题。将插件 jar 放在建议的每个文件夹中、以管理员身份运行等都不起作用。
解决这个问题的方法是从 Juno 包降级到 Indigo。您可以在此处找到旧版本的 Eclipse。
This ended up being an issue with Eclipse for me. Placing the plugin jar in each of the folders suggested, running as admin, etc. didn't work.
What did solve it was downgrading from a Juno package to Indigo. You can find older versions of Eclipse here.
如果您下载了更新站点插件,则本地存档插件即可运行。在这种情况下,dropins 可能无法工作。
关于 dropin 结构,它总是对我有用,但我从不在我自己的文件夹中使用 eclipse 文件夹,只使用插件和功能。您是否将 zip 文件解压到该结构中?
如果是,则值得在 Eclipse 启动后检查错误日志,其中可能列出了一些未解决的依赖项。
The local archive plug-ins work if you have downloaded an update site plug-in. In that case the dropins might not work.
About the dropin structure, it always worked for me, but I never use the eclipse folder inside my own ones, only the plugins and features. Did you extract the zip file to that structure?
If yes, it should be worth checking the Error log after Eclipse started, there might be some unresolved dependecies listed.
不要像这样手动放置
zip
文件。使用 Eclipse 中的向导安装本地归档插件。
Don't place the
zip
files manually like that.Use the wizard within Eclipse to install a local archive plug-in.