After extracting a Runnable Jar in Eclipse Version 2020-12 (4.18.0), when I run it with double click the image is not displayed:
However, when using java -jar meujar.java the image is displayed:
Image addition code:
JLabel lblImage = new JLabel();
lblImage.setBorder(BorderFactory.createLineBorder(Color.BLACK));
lblImage.setBounds(275, 30, 225, 225);
lblImage.setIcon(new ImageIcon("logo.png"));
The addition of the label to the frame was made by windows builder, following part of the code:
.addComponent(lblImage, GroupLayout.PREFERRED_SIZE, 225, GroupLayout.PREFERRED_SIZE)
.addComponent(lblImage, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))