Ubuntu 中的 Eclipse 插件问题
我试图通过更新管理器在 Ubuntu 9.04 Jaunty 上的 Eclipse 3.5 中安装 m2eclipse 插件,但无法解决这个问题。
下载并安装插件后,我重新启动 Eclipse 并检查首选项 - 那里没有 Maven。我仔细检查了配置。我可以在“已安装的软件”选项卡中看到我安装的 m2e 插件,但在“插件”选项卡中看不到。
我已经读过一些关于删除 ~/.eclipse 文件夹并使用 -clean 重新启动 Eclipse 的内容并尝试过,但无济于事。我在 WinXP 下执行此操作没有问题。
有谁知道如何解决这个问题?任何帮助将不胜感激。
PS:我检查了工作区中的日志文件。它说了一些关于
!ENTRY org.eclipse.jface 4 0 2009-08-30 19:13:37.390
!MESSAGE Undefined context while filtering dialog/window contexts
!STACK 0
org.eclipse.core.commands.common.NotDefinedException: Cannot get the parent identifier from an undefined context. org.maven.ide.eclipse.actionSet
at org.eclipse.core.commands.contexts.Context.getParentId(Context.java:201)
at org.eclipse.jface.bindings.BindingManager.createFilteredContextTreeFor(BindingManager.java:825)
at org.eclipse.jface.bindings.BindingManager.recomputeBindings(BindingManager.java:1721)
at org.eclipse.jface.bindings.BindingManager.contextManagerChanged(BindingManager.java:689)
at org.eclipse.core.commands.contexts.ContextManager.fireContextManagerChanged(ContextManager.java:165)
at org.eclipse.core.commands.contexts.ContextManager.addActiveContext(ContextManager.java:109)
at org.eclipse.ui.internal.contexts.ContextAuthority.updateContext(ContextAuthority.java:756)
at org.eclipse.ui.internal.contexts.ContextAuthority.activateContext(ContextAuthority.java:173)
at org.eclipse.ui.internal.contexts.ContextService.activateContext(ContextService.java:96)
at org.eclipse.ui.internal.contexts.SlaveContextService.doActivateContext(SlaveContextService.java:283)
但是这也出现在其他 ActionSet 类中(例如 org.eclipse.jdt.ui.JavaElementCreationActionSet)。
编辑:
max@max-laptop:~$ java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode)
I am trying to install the m2eclipse plugin in Eclipse 3.5 on Ubuntu 9.04 Jaunty via the update manager and can't figure out this problem.
After I downloaded and installed the plugin, I restarted Eclipse and checked the Preferences - no Maven there. I double checked the configuration. I can see the m2e plugins I installed in the "Installed Software" tab, but not in the "Plug-ins" tab.
I already read something about deleting the ~/.eclipse folder and restart Eclipse with -clean and tried it, but to no avail. I had no problem doing this under WinXP.
Does anyone know how to resolve this issue? Any help would be appreciated.
PS: I checked the logfile in my workspace. It says something about
!ENTRY org.eclipse.jface 4 0 2009-08-30 19:13:37.390
!MESSAGE Undefined context while filtering dialog/window contexts
!STACK 0
org.eclipse.core.commands.common.NotDefinedException: Cannot get the parent identifier from an undefined context. org.maven.ide.eclipse.actionSet
at org.eclipse.core.commands.contexts.Context.getParentId(Context.java:201)
at org.eclipse.jface.bindings.BindingManager.createFilteredContextTreeFor(BindingManager.java:825)
at org.eclipse.jface.bindings.BindingManager.recomputeBindings(BindingManager.java:1721)
at org.eclipse.jface.bindings.BindingManager.contextManagerChanged(BindingManager.java:689)
at org.eclipse.core.commands.contexts.ContextManager.fireContextManagerChanged(ContextManager.java:165)
at org.eclipse.core.commands.contexts.ContextManager.addActiveContext(ContextManager.java:109)
at org.eclipse.ui.internal.contexts.ContextAuthority.updateContext(ContextAuthority.java:756)
at org.eclipse.ui.internal.contexts.ContextAuthority.activateContext(ContextAuthority.java:173)
at org.eclipse.ui.internal.contexts.ContextService.activateContext(ContextService.java:96)
at org.eclipse.ui.internal.contexts.SlaveContextService.doActivateContext(SlaveContextService.java:283)
but this does appear also for other ActionSet classes (e.g. org.eclipse.jdt.ui.JavaElementCreationActionSet).
EDIT:
max@max-laptop:~$ java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我解决了。问题是 Eclipse 仍然尝试以普通用户身份写入 /opt/eclipse,尽管它应该写入 ~/.eclipse/org.eclipse.platform_3.5.0_1665051554 中的 eclipse 用户文件夹。所以我解决了我的问题
Okay, I solved it. The problem was that Eclipse still tries to write to /opt/eclipse as normal user although it should write to the eclipse user folder in ~/.eclipse/org.eclipse.platform_3.5.0_1665051554. So I solved my problem with