wood burning stoves*
The moose likes Beginning Java and the fly likes ERROR - Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ERROR - "system cannot find the file specified"" Watch "ERROR - "system cannot find the file specified"" New topic
Author

ERROR - "system cannot find the file specified"

Peter Kolozvary
Greenhorn

Joined: Sep 06, 2008
Posts: 6
I'm not sure why I'm getting this error.

The compile file option produces no errors, however when I got to run the program, it spits out the error:"system cannot find the file specified".

I've even moved the file around and the system still can't find it. Any thoughts?

Here is my code along with the error message:

marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Peter Kolozvary:
...
// Open the Transactions file.
File file = new File("D:/Trasactions.txt");
...

Do you see a typo?


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ERROR - "system cannot find the file specified"