filename start with file:\

A

autogoor

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,
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top