I\'m using Eclipse and developing a java application where I use of a local file.
The file is inside the project folder, in a subfolder, say \"mydata/myfile.txt\"
When I run
When your app is exported as a jar, your config file is not available as a file, since it's wrapped up in the .jar file. Instead you should access it via ClassLoader.getResourceAsStream(). See this SO question for more background info.