MalformedURLException - Spaces in the classpath

Discussion in 'Java' started by Sudarshan Raghavan, Jul 1, 2003.

  1. 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
     
    Sudarshan Raghavan, Jul 1, 2003
    #1
    1. Advertising

  2. Sudarshan Raghavan

    Dag Sunde Guest

    Must you not "URL-encode" that string?

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

    --
    Dag.

    "Sudarshan Raghavan" <> wrote in message
    news:...
    > 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
     
    Dag Sunde, Jul 1, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kerry Shetline
    Replies:
    1
    Views:
    6,208
    Kerry Shetline
    Sep 4, 2003
  2. Flip
    Replies:
    3
    Views:
    7,279
    Tony Morris
    Feb 9, 2004
  3. Gabe
    Replies:
    3
    Views:
    1,078
  4. Twisted
    Replies:
    5
    Views:
    3,591
    mitchh
    Dec 20, 2007
  5. Replies:
    2
    Views:
    755
Loading...

Share This Page