Text and image files within jar files
I am new to using jar files, and I am having a problem accessing files within the jar file. I packaged the jar file using Eclipse. The error that I get is:
java.io.FileNotFoundException: Coordinates.txt <The system cannot find the file specified>
at java.io.FileInputStream.open<Native Method>
at java.io.FileInputStream.<init><Unknown Source>
at java.util.Scanner.<init><Unknown Source>
I can fix this problem by copying and pasting the contents of my files (.txt and .gif) into completely new files and replacing the old ones using WinRAR. When I do this, the program runs perfectly. Unfortunately, when I email my program as an attachment or on some computers when I transfer it with a thumb drive, I get the same error message. Because of the patched-up fix that I found, I am wondering if this could be a problem with file permissions?
Thanks a lot!