Hi
I am able to include the image in jar file but still its not able to locate the file.
here i am pasting the code
ImageIcon createImageIcon(
String path, String description)
{
System.out.println("-------path:"+path);
try
{
URL imgURL = ClassLoader.getSystemResource(path);
System.out.println("-------imgURL:"+imgURL);
if (imgURL != null) {
return new ImageIcon(imgURL, description);
} else {
System.err.println("Couldn't find file: " + path);
return null;
}
}catch(Exception e)
{
e.printStackTrace();
}
return null;
}
this function i am using as below
ImageIcon icon = createImageIcon("images/logo_jpmf.gif", "logo");
JLabel title = new JLabel(" Commingled Funds Trade Entry ", icon, JLabel.LEFT);
Regards
Radha