Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > filename start with file:\

Reply
Thread Tools

filename start with file:\

 
 
autogoor@yahoo.com
Guest
Posts: n/a
 
      07-02-2005
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,

 
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
The filename set in the response.setHeader("Content-Disposition", "attachment; filename=test.csv") is being ignored! Ed Java 10 07-13-2010 12:43 PM
Re: filename.gif or filename.gif.jpg? Beauregard T. Shagnasty HTML 1 05-30-2008 01:23 PM
Stitch rar files ( filename.part01 and filename.part02) Please help ixgor Software 1 10-15-2006 02:33 AM
how to get 8.3 format filename from long filename jacobyv@sis.unibe.ch Java 1 06-15-2006 10:39 AM
Extract filename from a filename typed by user =?Utf-8?B?Sm9l?= ASP .Net 1 08-23-2004 11:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57