954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

java.io.FileNotFoundException

Hi all,
m having this java.io.FileNotFoundException: The system cannot find the specified file, although the file is there in the folder.

waiting for some replies,
thanks

deifyme
Newbie Poster
3 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

What kind of file is it? Are you reading data from a data file and the Java program can't find the data file? Or is it some class file it can't find? From your description it sounds like the former. I assume this is a run time error rather than a compiler error.

VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711
 

Its a text file .....although the required text file is right in the same folder where my java program is.....Is it because I put throw IOException...

deifyme
Newbie Poster
3 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 
Its a text file .....although the required text file is right in the same folder where my java program is.....Is it because I put throw IOException...


I don't know. Maybe you should post your Java file and your text file, if they're not too huge. Might make it easier for us to respond that way. I assume you have a "catch" along with your "throw"?

VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711
 

u were right the problem was at runtime..it got sorted out..thanks

deifyme
Newbie Poster
3 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You