I need to read a text file when I start my program. I\'m using eclipse and started a new java project. In my project folder I got the \"src\" folder and the standard \"JRE S
Just create a folder Files under src and put your file there. This will look like src/Files/myFile.txt
Files
src
src/Files/myFile.txt
Note: In your code you need to specify like this Files/myFile.txt e.g.
Files/myFile.txt
getResource("Files/myFile.txt");
So when you build your project and run the .jar file this should be able to work.