试图安装JGit来安装EGit并获得错误需要包org.kohsuke.args4

时间:2012-10-17 19:37:14

标签: egit jgit

尝试安装JGit以安装EGit并收到错误:

Cannot complete the install because one or more required items could not be found.
  Software being installed: Eclipse JGit Command Line Interface 2.1.0.201209190230-r (org.eclipse.jgit.pgm.feature.group 2.1.0.201209190230-r)
  Missing requirement: JGit Command Line Interface 2.1.0.201209190230-r (org.eclipse.jgit.pgm 2.1.0.201209190230-r) requires 'package org.kohsuke.args4j [2.0.12,2.1.0)' but it could not be found
  Cannot satisfy dependency:
    From: Eclipse JGit Command Line Interface 2.1.0.201209190230-r (org.eclipse.jgit.pgm.feature.group 2.1.0.201209190230-r)
    To: org.eclipse.jgit.pgm [2.1.0.201209190230-r]

~~~~ 更新 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
我给了它新的更新站点,它说已经安装了EGit

然后我去卸载它,只有~6个Egit条目中的一个在选中时启用了卸载按钮。 (为什么它会让我卸载它们? - ed)我卸载了一个希望可能会管理卸载所有条目的人。 (为什么“安装新软件”选项旁边没有“卸载软件”选项?-ed)

然后我再次尝试安装EGit并说没有必要安装一些插头,因为它们已经安装(为什么它会让我过来写它?-ed)。所以它让我继续基于已经安装的其他插件。

我按照建议重新启动了。

我现在收到此警报,无法打开Flash Builder(Eclipse)。

Cannot complete the request.  See the error log for details.
"Eclipse EGit" will be ignored because it is already installed.

日志包含以下信息:

!SESSION 2012-10-17 16:38:16.346 -----------------------------------------------
eclipse.buildId=I20100608-0911
java.version=1.6.0_35
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments:  -keyring /Users/me/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86 -keyring /Users/me/.eclipse_keyring -consoleLog -showlocation

!ENTRY org.eclipse.osgi 4 0 2012-10-17 16:38:16.892
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

*我认识的另一位开发人员说他试了几天才安装了EGit而且不能。这是正常的吗? *

有什么建议吗?

1 个答案:

答案 0 :(得分:2)

您是否使用了h t t p://download.eclipse.org/egit/updates存储库?这似乎不完整,请参阅此错误报告:https://bugs.eclipse.org/bugs/show_bug.cgi?id=392087

如果您想安装EGit,只需使用此存储库:http://download.eclipse.org/releases/juno/ 它包含最新版本的EGit(2.1)以及所有必需的依赖项(包括JGit)。

相关问题