Java Can't Find File when Running through Eclipse

Posted by derekerdmann on Stack Overflow See other posts from Stack Overflow or by derekerdmann
Published on 2010-05-08T03:45:53Z Indexed on 2010/05/08 3:48 UTC
Read the original article Hit count: 252

Filed under:
|
|
|
|

When I run a Java application that should be reading from a file in Eclipse, I get a java.io.FileNotFoundException, even though the file is in the correct directory. I can compile and run the application from the command line just fine; the problem only occurs in Eclipse, with more than one project and application. Is there a setting I need to change in the run configurations or build paths to get it to find the file correctly?

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse