Friday, 15 May 2015

Java- In Eclipse everything is fine but after building- "Can't read input file!" -


This is my first question and perhaps it is very clever to answer, but I hope for the best. I have created an app that / gif files In the code, there is:

  file image file = new file ("bin / logo.gif");  

And everything works well, but after compiling it and running it from the .jar file, "the input file can not be read!" I was in the eclipse of this problem, so I wrote "/ bin" in the path of reading the file.

What should I do? Keeping the .gif files in the bin is not a good option.

This is a better way to create a separate folder in your / src directory (for example, / images>) and use your resource files from there.


No comments:

Post a Comment