My image path doesn't work in jar file
I want to show a image on JLabel and then I deploy my project into a jar file.I use my code like this:
ImageIcon icon = new ImageIcon("C:/Documents and Settings/ram/Desktop/jeu de Nim/res/match.JPG");
setIcon(icon);
or
like this ;
ImageIcon icon = new ImageIcon("match.JPG");
setIcon(icon);
However,It doesn't work in other computer.I can't show it in the frame.When I make .jar file ,don't I use extra jar options or is there a bug in written code ?

