I want to pack all my class files and its resource within a execute Jar file. But my program can't access the resource file(image) in the same file.
ImageIcon icon = new ImageIcon("image\\a.gif");
The image folder is same with my class file package folder. "com". It works properly if I don't put those in a jar file. Please tell me how to solve the problem. Thank you.