ProblemWithTheJar the .jar - images do not show up
<p>Problem is the following - I am writing a program with Eclipse in java..
The resulting folder structure is main project folder: Animal Classification/  inside of it:  bin/ , images/, pics/    in the bin/ folder : users/metropolia/allClasses.class </p>

<p>Program starts normally and works -> images are in the folders images/ and pics/ -> they are used by users.metropolia.Hieararchy</p>

<p>But when I create a .jar out of it either through Eclipse or through CMD.exe -> in the folder different from the source folder the jar does not show images even though they are packed inside of it. Inside the Hierarchy.class the path to the images is ("images/name.jpg" or "pics/name.jpg"). </p>

<p>Then I tried to use the ClassLoader.getSystemResource("images/name.jpg") - but now the eclipse and the cmd.exe give warnings and dont start the program -> NullPointerException in thread main = mistake in the line where ClassLoader static is used...</p>

<p>I would really appreciate any help</p>

<h2>Update:</h2>

<p><a href="http://users.metropolia.fi/~artemm/" rel="nofollow">http://users.metropolia.fi/~artemm/</a></p>

<p>Download the code from there plz 
It can be downloaded as SFX-archive or if you are afraid of viruses just download usual RAR archive</p>

<p>I really appreciate your help</p>

<p>Main class is in users/metropolia/Program.java</p>

<h2>Update 2:</h2>

<p>@MockerTim</p>

<p>THank you very much for your help - now everything works. Moreover, I managed to find one more snag - it didnt call for the images, because the call was : "Fish.jpg" and the picture was : "fish.jpg" - no wonder it could not find anything and gave mistakes. </p>

<p>THank you very much once again, I really appreciate!</p>
