简体   繁体   English

Ubuntu中的Eclipse插件问题

[英]Problem with Eclipse plugin in Ubuntu

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. 我正在尝试通过更新管理器在Ubuntu 9.04 Jaunty上的Eclipse 3.5中安装m2eclipse插件,无法解决此问题。

After I downloaded and installed the plugin, I restarted Eclipse and checked the Preferences - no Maven there. 下载并安装插件后,我重新启动了Eclipse并检查了Preferences-那里没有Maven。 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. 我可以在“已安装的软件”选项卡中看到我安装的m2e插件,而在“插件”选项卡中看不到。

I already read something about deleting the ~/.eclipse folder and restart Eclipse with -clean and tried it, but to no avail. 我已经读过一些有关删除〜/ .eclipse文件夹,并使用-clean重新启动Eclipse并尝试过的方法,但无济于事。 I had no problem doing this under WinXP. 我在WinXP下执行此操作没有问题。

Does anyone know how to resolve this issue? 有谁知道如何解决这个问题? Any help would be appreciated. 任何帮助,将不胜感激。

PS: I checked the logfile in my workspace. PS:我检查了工作区中的日志文件。 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 (eg org.eclipse.jdt.ui.JavaElementCreationActionSet). 但这对于其他ActionSet类(例如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)

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. 问题是,尽管Eclipse应该写入〜/ .eclipse / org.eclipse.platform_3.5.0_1665051554中的eclipse用户文件夹,但它仍然尝试以普通用户身份写入/ opt / eclipse。 So I solved my problem with 所以我解决了我的问题

sudo chmod -R a+rw /opt/eclipse

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM