Failed to install ADT plugin in Eclipse - error message “violates the contract”

Yesterday I had a problem with the required elements that were not found when installing the ADT plugin in Eclipse. I got around this by opening the list of download sites and checking the bottom two in the list, which for some reason were not selected. One of these addresses contained the word "mylyn". Now, when "fetchingjavax.xml_1.3.4 ......... / mylyn / drops ......" (the dots indicate other addresses), I got an error message:

An internal error occurred during: "Install download0". The comparison method violates the general contract!

which may be rejected, but the installation seems to have stopped.

What to do next?

+6
source share
3 answers

I had the same problem with Indigo running on a Java 7 virtual machine and found out that in eclipse there was a problem of selecting a boot mirror when using a Java 7 virtual machine.

This bug has been fixed in eclipse milestone 3.7.1 ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=352089 )

Here is my solution:

  • Add the new vmargs configuration property "-Djava.util.Arrays.useLegacyMergeSort = true" in eclipse.ini
  • Run and upgrade eclipse, at least to version Indigo Service Release 1 (3.7.1).
  • Delete the configuration property that you specified in step 1
+13
source

I think you have JRE 7 installed and this problem. I tried the same but always got this error message. On eclipse-bugzilla, I found advice to downgrade the JRE to version 6. Therefore, first uninstall JRE 7, than install JRE 6: Java 6u27 Download

+3
source

Try starting Eclipse using JRE 6. Example command line for Windows 7:

D:\path to eclipse\eclipse -vm "c:\Program Files (x86)\Java\jre6\bin\java.exe"

0
source

Source: https://habr.com/ru/post/896076/


All Articles