|
-
October 27th, 2014, 04:57 AM
#1
File not found exception
I am trying to implement an program that allows me to choose a file using JFileChooser, and parse the xml file using a SAX parser. I get the absolute path using: fc.getSelectedFile().getAbsolutePath(); And this gives me the right location of the file.
fileName = "\\users\udc8\a4471\My Documents\blockdiagram.xml"
However, when I try to run my parser it looks in the wrong Place.
parser.parse(fileName);
java.io.FileNotFoundException: \\users\udc8\a4471\workspace\SAX Intro\users\udc8\a4471\My Documents\blockdiagram.xml (The system cannot find the file specified)
Looking at that adress it adds the working directory. How does one change this?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|