Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > MalformedURLException - Spaces in the classpath

Reply
Thread Tools

MalformedURLException - Spaces in the classpath

 
 
Sudarshan Raghavan
Guest
Posts: n/a
 
      07-01-2003
Hi,
My program uses RMI and works perfectly when I install it under a directory
with no spaces (eg. C:\RMI_Example\test). However when I install it under a
directory with spaces (C:\RMI Example\test) it throws a
"MalformedURLException : no protocol : Example\Test" exception.

Is there a way to counter this problem ??

Windows OS, JDK 1.3.1_05

Sudarshan
 
Reply With Quote
 
 
 
 
Dag Sunde
Guest
Posts: n/a
 
      07-01-2003
Must you not "URL-encode" that string?

Something like: "C:\RMI%20Example\test"...

--
Dag.

"Sudarshan Raghavan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) m...
> Hi,
> My program uses RMI and works perfectly when I install it under a

directory
> with no spaces (eg. C:\RMI_Example\test). However when I install it under

a
> directory with spaces (C:\RMI Example\test) it throws a
> "MalformedURLException : no protocol : Example\Test" exception.
>
> Is there a way to counter this problem ??
>
> Windows OS, JDK 1.3.1_05
>
> Sudarshan



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MalformedURLException in HttpURLConnection.getResponseCode() Twisted Java 5 12-20-2007 02:27 PM
problem compiling project, classpath in xml ".classpath" "<classpathentry...>" jameshanley39@yahoo.co.uk Java 2 03-02-2007 12:37 PM
while using javac -classpath some.jar some.java (Where does classpath get stored?) Gabe Java 3 08-27-2004 07:02 PM
CLASSPATH, -cp and -classpath misunderstanding? Flip Java 3 02-09-2004 10:09 PM
Spaces in path to app causing RMI fits with MalformedURLException Kerry Shetline Java 1 09-04-2003 10:41 PM



Advertisments