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

Bug 270353

Summary: [update] Update rewrites Eclipse.ini VM URL incorrectly
Product: [Eclipse Project] Platform Reporter: Gerald Rosenberg <gerald>
Component: Update (deprecated - use Eclipse>Equinox>p2)Assignee: Platform-Update-Inbox <platform-update-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: blocker    
Priority: P3 CC: pascal
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Gerald Rosenberg CLA 2009-03-28 11:29:55 EDT
Build ID: I20090313-0100

Steps To Reproduce:
Whenever I use Help->Check for Updates or Help->Install New Software (*and actually update/install something*), Eclipse rewrites the eclipse.ini VM line incorrectly.

Before running Update/Install, my eclipse.ini contains the line: 

-vm
C:/Program Files/Java/jdk1.6.0_11/bin/javaw.exe

After update/install and closing Eclipse, the line has been changed to:

-vm
file:/C:/Program Files/Java/jdk1.6.0_11/bin/javaw.exe

More information:
In the newsgroups, Erric Rizzo confirms a similar error with regard to relative paths (not certain of his platform):

[F]or me it uses a relative path. My eclipse.ini ends up looking like this:

-vm
../../../../java/JDK/1.6.0/bin/javaw.exe

I'm not sure what is the purpose of the re-writing in the first place; it certainly seems like a bug to do it at all. Makes it a pain to move around either Eclipse installations or JVM installations (both of which I've done without worry in the past).
Comment 1 Pascal Rapicault CLA 2009-03-28 13:05:28 EDT

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