I have added “Images” folder inside “src” folder in Java project.
For setting top left image on title bar I am using image from Image folder.
To do that I have written code
Image img=Toolkit.getDefaultToolkit().getImage("src/Images/Sell Smart2 copy.jpg");
frame.setIconImage(img);
This works fine when project run through Netbeans
But when I run jar of that project through command line using command “java -jar project.jar” then Image is not shown.
Why this problem coming ? Any solution for that
Thanks,
Image added for refernce.

Just drop the src from your path.
Also, while loading jarred images, you should be using getClass().getResource()