Bug 320732 - Eclipse does not start on Windows when there is a # (sharp) in the path to eclipse
Summary: Eclipse does not start on Windows when there is a # (sharp) in the path to ec...
Status: CLOSED DUPLICATE of bug 3109
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Components (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: equinox.components-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-23 11:07 EDT by Arne Deutsch CLA
Modified: 2010-07-26 02:28 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arne Deutsch CLA 2010-07-23 11:07:00 EDT
Build Identifier: 20090621-0832

If you try to start eclipse on a path with a sharp (e.g. "C:\my#\eclipse\" ) eclipse does not start but crashes with exit code 13.


Problem seems to be in:

org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
private URL getInstallLocation()


Problematic line:

path = new File(path).toURL().getFile();


At this point the path is truncated.


A simple program to reproduce the problem outside of eclipse:

import java.io.*;

public class Main {
	public static void main(String[] args) throws Exception {
		System.out.println(new File("C:/test#/testthis").toURL().getFile());
	}
}

Output is: "/C:/test"

Reproducible: Always

Steps to Reproduce:
1. Install eclipse on a path with a sharp (e.g. "C:\my#\eclipse" ) on windows XP
2. Start eclipse by double clicking "eclipse.exe"
3. Watch the crash screen.
Comment 1 Thomas Watson CLA 2010-07-23 11:29:20 EDT

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