问题描述
我正在尝试在我的版本的中安装
通过 Eclipse Git Team Provider
和 JGit
Eclipse ADT 帮助>安装新软件> EGit - http://download.eclipse.org/egit/updates
,但安装失败,出现此错误...
I am trying to install Eclipse Git Team Provider
and JGit
in my version of Eclipse ADT
via Help > Install New Software > "EGit - http://download.eclipse.org/egit/updates"
but the installation fails with this error...
这就是说我需要安装 org.apache.httpcomponents.httpclient 4.1.3.v201209201135
或 package org.apache.commons.codec.binary 1.4.0
(虽然,我不清楚哪一个丢失,或者是否都缺少?)...
It's saying I need to install either org.apache.httpcomponents.httpclient 4.1.3.v201209201135
or package org.apache.commons.codec.binary 1.4.0
(although, I'm not clear which one is missing, or whether both are missing?)...
如何将它们添加到 Eclipse
?
我可以找到很多关于如何将jar添加到单个项目的库中的信息,但这不是我需要的,因为我认为(纠正我,如果我错了)我需要通过帮助>将它们添加到Eclipse安装新软件
。
I can find lots of info on how to add jars to the library of an individual project, but that's not what I need as I think (correct me if I'm wrong) that I need to add them to Eclipse via Help > Install New Software
.
我看到很多人发表类似的问题与其他依赖关系,但没有找到答案,解释如何添加这个特定的软件。
And I have seen lots of people post similar problems with other dependencies, but have not found an answer that explains how to add this particular software.
我是Eclipse的新手,所以任何帮助将不胜感激。
I'm new to Eclipse, so any help would be much appreciated.
推荐答案
我已经找到了一个解决这个问题的方法,至少在我的Eclipse安装中。
I have found a solution to this problem, at least on my installation of Eclipse.
我所做的是获得
$ b
What I did was get the name of the missing package and googled it.
-
从这里下载包:
在二进制部分下选择软件包
Download the package from here:http://commons.apache.org/proper/commons-codec/download_codec.cgiSelecting the package under the "Binaries" section
解压缩文件并解压缩commons-codec-1.9.jar
Unzip the file and extract "commons-codec-1.9.jar"
将此Jar文件复制到Eclipse安装目录Eclipse\plugins
Copy this Jar file to your Eclipse installation directory "Eclipse\plugins"
将其重命名为你的丢失包的名字。
(在我的情况下为org.apache.commons.codec.binary_1.4.0.jar)
Rename it with the name of your missing package.(In my case "org.apache.commons.codec.binary_1.4.0.jar")
现在重复安装EGit和它应该工作。
Now repeat the steps to install EGit and it should work.
显然有很多事情可能与您的安装有所不同,我使用Eclipse版本4.2 .0
Obviously there are many things that could be different with your installation, I am using Eclipse version 4.2.0
我希望这有帮助。
这篇关于Eclipse - 无法完成安装,因为无法找到一个或多个必需项目(org.apache.httpcomponents.httpclient)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!