filename start with file:\

Discussion in 'Java' started by autogoor@yahoo.com, Jul 2, 2005.

  1. Guest

    I am using xml and xslt to transfer c:\mydir\a.xml to c:\mydir\a.java
    with c:\mydir\a.xsl. My program works fine on my laptop. Then I copy
    everything (java program, xml, xsl) to my desktop, but it throws an
    exception saying

    java.io.FileNotFoundException: file:\C:\mydir\a.java

    I think the problem is the "file:\". I did a test. To verify this

    I run my program on LPATOP as

    myprogram c:\mydir\a.xml c:\mydir\a.xsl c:\mydir1\a.java.

    Since I do not have a directory called "mydir1" on the laptop, it
    throws a exception saying

    java.io.FileNotFoundException: C:\mydir1\a.java

    Ho can I got rid of the "file:\" on my desktop?

    THanks,
     
    , Jul 2, 2005
    #1
    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. =?Utf-8?B?Sm9l?=

    Extract filename from a filename typed by user

    =?Utf-8?B?Sm9l?=, Aug 23, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,060
    Travis Murray
    Aug 24, 2004
  2. Replies:
    1
    Views:
    1,572
    Roland de Ruiter
    Jun 15, 2006
  3. Ed
    Replies:
    10
    Views:
    46,526
    alok000707
    Jul 13, 2010
  4. Beauregard T. Shagnasty

    Re: filename.gif or filename.gif.jpg?

    Beauregard T. Shagnasty, May 30, 2008, in forum: HTML
    Replies:
    1
    Views:
    792
    Jonathan N. Little
    May 30, 2008
  5. Stefano Crocco
    Replies:
    0
    Views:
    154
    Stefano Crocco
    Nov 14, 2008
Loading...

Share This Page