Re: Java Web Start
- From: Lew <lew@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Apr 2007 23:56:14 -0400
Andrew Thompson wrote:
Lew wrote:Andrew Thompson wrote:Andrew Thompson wrote:file:/D:/projects/TellURL.javaActually the url's were correct and yours is wrong :-)
(snip RFC 1738 detail)
Interesting, but... The URL shown above, is what Java printed out when I ran the code. Are you saying Java's handling of URL's is buggy*?It's the number of slashes after the protocol colon ("file://" vs. "file:/") that's at issue here, right?
That is part of what I find confusing, but I am also a little unclear on whether 'home' (in Robert's example)
represents a drive. If not, how does whatever is resolving the URL know where to start?
Referencing: "file:///home/robert". Only the first two slashes are part of the protocol string.
The third slash is the root "/" of the file system, so it starts at "/".
In the case of Windows, it treats "C:" as a path element. The file: URLs for that drive should look like
file:///C:/directory/.../whatever
since in Windows the "root" is imaginary and just ahead of the drive letter.
--
Lew
.
- References:
- Java Web Start
- From: Keith McCutcheon
- Re: Java Web Start
- From: Keith McCutcheon
- Re: Java Web Start
- From: Robert Larsen
- Re: Java Web Start
- From: Robert Larsen
- Re: Java Web Start
- From: Lew
- Java Web Start
- Prev by Date: Re: Java Web Start
- Next by Date: Re: Java Web Start
- Previous by thread: Re: Java Web Start
- Next by thread: Re: Java Web Start
- Index(es):
Relevant Pages
|