Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347606 - Installation of Google WindowBuilder Pro fails if eclipse.exe started with JDK7
Summary: Installation of Google WindowBuilder Pro fails if eclipse.exe started with JDK7
Status: CLOSED DUPLICATE of bug 317785
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-30 03:15 EDT by Thomas Nagel CLA
Modified: 2011-05-30 08:46 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***