简体   繁体   English

安装额外的eclipse靛蓝文件

[英]installing additional eclipse indigo files

After downloading Eclipse Indigo on a clean pc, when I try to download from http://dl.google.com/eclipse/plugin/3.7 and download SDKs and Google Plugin , at about 35% of the way through I start getting errors. 在干净的PC上下载Eclipse Indigo后,当我尝试从http://dl.google.com/eclipse/plugin/3.7下载并下载SDK和Google插件时,大约35%的时间我开始收到错误。

Install download1
An internal error occurred during: "Install download1".
Comparison method violates its general contract!

Install download2
An internal error occurred during: "Install download1".
Comparison method violates its general contract!

Install download3
An internal error occurred during: "Install download1".
Comparison method violates its general contract!

Installing Software
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Multiple problems occurred while downloading.
Unable to write to repository: file:/C:/Users/erice/Downloads/eclipse-jee-indigo-win32-x86_64/eclipse/.
C:\Users\erice\Downloads\eclipse-jee-indigo-win32-x86_64\eclipse\plugins\com.ning.async-http-client_1.6.3.201112281337.jar (Access is denied)
Unable to write to repository: file:/C:/Users/erice/Downloads/eclipse-jee-indigo-win32-x86_64/eclipse/.
C:\Users\erice\Downloads\eclipse-jee-indigo-win32-x86_64\eclipse\plugins\com.ning.async-http-client_1.6.3.201112281337.jar (Access is denied)
No repository found containing: osgi.bundle,org.eclipse.m2e.archetype.common,1.0.200.20111228-1245
No repository found containing: osgi.bundle,org.eclipse.m2e.maven.indexer,1.0.200.20111228-1245
No repository found containing: osgi.bundle,org.eclipse.m2e.maven.runtime,1.0.200.20111228-1245
No repository found containing: osgi.bundle,org.jboss.netty,3.2.4.Final-201112281337

Any clues? 有线索吗?

It's a known issue of Eclipse 3.7 running on Java 7. 这是在Java 7上运行的Eclipse 3.7的已知问题。

Possible workarounds: 可能的解决方法:

  • use JRE7u5 (last version) 使用JRE7u5(最新版本)
  • when using JRE7, theres a small rarely documented feature set system property java.util.Arrays.useLegacyMergeSort=true This should use old implementation and should not bring up the bug (I haven't tested, but you can search for the property ;-) ) 当使用JRE7时,有一个很少记录的小功能集系统属性java.util.Arrays.useLegacyMergeSort = true这应该使用旧的实现,不应该提出错误(我没有测试,但你可以搜索属性; - ))

See bug 317785 for detail. 有关详细信息,请参阅错误317785

Try to run eclipse with older java version. 尝试使用较旧的java版本运行eclipse。 Start Eclipse from command line with: 从命令行启动Eclipse:

D:\\Eclipse\\eclipse j2ee indigo>eclipse -vm C:\\Java\\jdk1.6.0_31\\bin\\javaw.exe D:\\ Eclipse \\ eclipse j2ee indigo> eclipse -vm C:\\ Java \\ jdk1.6.0_31 \\ bin \\ javaw.exe

It worked for me. 它对我有用。

(-vm is pointing to your jre instalation. Remember: Eclipse does not use JAVA_HOME variable. it uses its own Java.) (-vm指向你的jre instalation。记住:Eclipse不使用JAVA_HOME变量。它使用自己的Java。)

I had a similar issue. 我有一个类似的问题。 Could not install Android Native Development Tools. 无法安装Android Native Development Tools。 Was getting this error - "An internal error occurred during: "Install download3".Comparison method violates its general contract! " 得到此错误 - “在以下期间发生内部错误:”安装download3“。比较方法违反了其总合同!”

I ended up installing CDT (C/C++ Development Tools) from the Helios update site. 我最终从Helios更新站点安装了CDT(C / C ++开发工具)。 Then I could install Android Native Development Tools. 然后我可以安装Android Native Development Tools。

Hope this helps someone 希望这有助于某人

I had this problem during installation of BIRT plugin into Eclipse Indigo. 在将BIRT插件安装到Eclipse Indigo期间,我遇到了这个问题。 I solved it by using this URL in the Update Manager. 我在Update Manager中使用此URL解决了这个问题。 I had to add the URL first, because only this URL was there. 我必须先添加URL,因为只有这个URL存在。

这是降级到Java 6 JRE和下载ADT以应对App Engine下载问题的组合。

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

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