Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ERROR - "system cannot find the file specified"

 
Peter Kolozvary
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Peter Kolozvary:
...
// Open the Transactions file.
File file = new File("D:/Trasactions.txt");
...

Do you see a typo?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic