Bug 17281 - Doesn't start [Linux path with :]
Summary: Doesn't start [Linux path with :]
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords: readme
: 16796 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-23 10:13 EDT by Christophe Elek CLA
Modified: 2012-05-13 09:18 EDT (History)
3 users (show)

See Also:


Attachments
JVM Error Dialog (5.24 KB, image/png)
2002-05-23 10:14 EDT, Christophe Elek CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Elek CLA 2002-05-23 10:13:55 EDT
F1 on Suse 7.3
installed in path /home/eclipse/eclipse~:F1/
Attempt to start Eclipse, it never starts
If I remove the ':' in the path, it starts
Comment 1 Christophe Elek CLA 2002-05-23 10:14:19 EDT
Created attachment 996 [details]
JVM Error Dialog
Comment 2 DJ Houghton CLA 2002-05-23 13:44:04 EDT
Investigate for 2.0
Comment 3 DJ Houghton CLA 2002-05-27 14:33:50 EDT
*** Bug 16796 has been marked as a duplicate of this bug. ***
Comment 4 DJ Houghton CLA 2002-05-27 14:34:40 EDT
Verified that this is a problem on Linux RH 7.2 in both the GTK and Motif builds
for I-20020527.
Comment 5 DJ Houghton CLA 2002-05-27 14:47:45 EDT
Eclipse launches ok without using the executable and by calling Main directly.

Adding McQ to CC for comment/coordination on potential work on the exe.
Comment 6 Mike Wilson CLA 2002-05-27 15:10:17 EDT
The problem seems like it should be that, the colon is placed in the 
classpath, but colon is the classpath separator, and the entries aren't 
quoted(?). That would be weird, since arguments with spaces would be 
broken too.

Are you saying that if you type the command line shown in that dialog that 
Eclipse will come up?

KC owns the launcher code. He'd be the one to fix it. Adding him to the CC 
so he can comment? Kevin: Do you know what's going on here?
Comment 7 DJ Houghton CLA 2002-05-27 15:44:04 EDT
Sorry, I forgot about the classpath separator character. 

I am in the process of confirming whether or not you are able to escape this 
character in the argument to "-cp". 

Initial investigation is not looking like you can do this. 

I will update this bug report as soon as I find out more information.
Comment 8 DJ Houghton CLA 2002-05-27 15:52:40 EDT
Have confirmed that there doesn't seem to be a way to include a single 
classpath entry as an arg to the VM when it contains a directory or filename 
with the classpath separator character.

I believe this is a candidate for the README.
Comment 9 Mike Wilson CLA 2002-05-28 08:54:46 EDT
You might want to check with the PMC, but I agree: readme it.

Comment 10 DJ Houghton CLA 2002-05-28 10:45:47 EDT
Is it possible for us to check in the executable to see if the full path 
contains an illegal character before we try and run Main.java? That way we 
could print out a message to the user so they wouldn't get the NoClassDefError.

I believe that System.getProperty("path.separator") will return the 
appropriate invalid character for the platform.

Either way, it still should be readme'd.
Comment 11 Mike Wilson CLA 2002-05-28 10:54:49 EDT
There is no equivalent to System.getProperty("path.separator") in C, so 
I'm not sure what we could do to test this. We could guess what it is 
based on the platform, but I'm not in favor of this.
Comment 12 Christophe Elek CLA 2002-05-28 11:03:28 EDT
Just for reference:
<http://java.sun.com/j2se/1.4/docs/tooldocs/linux/java.html>
Comment 13 Mike Wilson CLA 2002-05-28 11:20:56 EDT
Sorry, I guess I'm going blind in my old age... Was there anything in that 
link of value other than the reference to ":" as the classpath separator 
(which is actually incorrect, for win32 VMs.)?
Comment 14 Christophe Elek CLA 2002-05-28 11:55:49 EDT
Nope, you are right, ;-)
I haven't seen anything, just wanted to put the Sun as a ref (ie for the readme)
PS: this link is only for Linux I believe (check the link, it contains linux)
Comment 15 DJ Houghton CLA 2002-09-09 14:47:59 EDT
Closing as WONTFIX and marking as README.
Comment 16 peter tomson CLA 2012-05-13 09:18:21 EDT
The problem seems like it should be that, the colon is placed in the 
classpath, but colon is the classpath separator, and the entries aren't 
quoted(?). That would be weird, since arguments with spaces would be 
broken too.

Are you saying that if you type the command line shown in that dialog that 
Eclipse will come up?

KC owns the launcher code. He'd be the one to fix it. Adding him to the CC 
so he can comment?

that was the problem for the most part thanks, that should fix other problems as well in similar situations, with these bugs

on a lighter note the x factor contest is nearly around again http://x-factor-2013.blogspot.co.uk/