I tried to add 3 pictures to my program, but when i add pictures, created .jar file cannot start.
When I try clean and build without pictures the .jar file works well.
The pictures path: D:\Desktop\Password\src\resources
final public ImageIcon picture = new ImageIcon(getClass().getResource("./resources/picture.png"));
final public ImageIcon picture1 = new ImageIcon(getClass().getResource("./resources/picture1.jpg"));
final public ImageIcon picture2 = new ImageIcon(getClass().getResource("./resources/picture2.jpg"));
From Netbeans the icons are visible, and a program works correctly.
What did I do wrong?