File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes File Protocol does not work with double slash in j2sdk 1.4.2 ...??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "File Protocol does not work with double slash in j2sdk 1.4.2 ...???" Watch "File Protocol does not work with double slash in j2sdk 1.4.2 ...???" New topic
Author

File Protocol does not work with double slash in j2sdk 1.4.2 ...???

SBELUR BELUR
Greenhorn

Joined: Mar 01, 2005
Posts: 3
Hi All
Recently while running a remote object in java 1.4.2 version(even 1.5) with argument for java.rmi.server.codebase property as file:// followed by complete
path of a jar file , I got a Filepermission related exception
(Also Security Exception )

BUT when i used 3 slashes instead of 2 it works

BUT my point is that it works very well with 2 slashes in java 1.4.1 version

Please can any one shed some light on this ; as to why it works with 1.4.1 and not 1.4.2 version of java. The policy files seem to be same (java.policy)

Any idea ?

Thanks
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Are you *sure* that it used to work with two slashes? As I mentioned in this thread, I've always had to use three slashes, and Tim Holloway was good enough to tell why three slashes were needed... and it's always been a part of the protocol.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
I suspect this is a matter of 1.4.2 correctly implementing the RFC for URIs - take a look at the JavaDocs for java.net.URI for example.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File Protocol does not work with double slash in j2sdk 1.4.2 ...???
 
Similar Threads
Help! Wsdl2Java Can't parse a Coldfusion WSDL?
Change of version to SDK 1.4.2
File Protocol does not work with double slash in j2sdk 1.4.2 ...???
executable jar exception
Which JDK version should we use