Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347606

Summary: Installation of Google WindowBuilder Pro fails if eclipse.exe started with JDK7
Product: [Eclipse Project] Platform Reporter: Thomas Nagel <thomas.nagel>
Component: RuntimeAssignee: platform-runtime-inbox <platform-runtime-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Thomas Nagel CLA 2011-05-30 03:15:07 EDT
Build Identifier: 20110218-0911

1. Install JDK 6 and JDK 7 
2. Install the windows eclipse java package
3. start eclipse without any command line options
4. use a new workspace
5. install new software: from 
http://dl.google.com/eclipse/inst/d2wbpro/latest/3.6
6. select all packages and start installation

after most or all packages are downloaded a message box wioth the following error is shown:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Comparison method violates its general contract!
Comparison method violates its general contract!


This only happens, if JDK 7 is used, maybe accidently.

If instead of step 3 the eclipse platform is started with a JDK 6 the installation succeeds. (It takes some time to find out, however ;)



Reproducible: Always

Steps to Reproduce:
1. Install JDK 6 and JDK 7 
2. Install the windows eclipse java package
3. start eclipse without any command line options
4. use a new workspace
5. install new software: from 
http://dl.google.com/eclipse/inst/d2wbpro/latest/3.6
6. select all packages and start installation
Comment 1 Thomas Nagel CLA 2011-05-30 03:17:11 EDT
Oh, I used the current JDK 1.7:

C:\eclipse-java-helios-SR2-win32\eclipse>java -version
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b130)
Java HotSpot(TM) Client VM (build 21.0-b02, mixed mode, sharing)

that did not work, but with JDK 1.6.0 Update 25 it worked.
Comment 2 John Arthorne CLA 2011-05-30 08:46:40 EDT

*** This bug has been marked as a duplicate of bug 317785 ***