I feel like I've tried everything. These are some of the examples of the code I've tried which runs perfectly fine inside the IDE, but as soon as it's packaged in a jar file, it falls apart. Every file is on the same level and packaged inside the jar file. I open it with WinRar and see that the image "c3.png" is absolutely inside, right next to my Main-Class, in the root of the Jar.
C3 = new ImageIcon( getClass().getResource("c3.png") );
.
C3 = new ImageIcon( this.getClass().getResource("c3.png") );
.
C3 = new ImageIcon( ImageIO.read( getClass().getResource("c3.png") );
.
C3 = new ImageIcon( ImageIO.read( ClassLoader.getSystemClassLoader().getResourceAsStream( "c3.png" ) ) );
.
C3 = new ImageIcon( ImageIO.read( getClass().getClassLoader().getResource( "C3.png" ) ) );
edit: I've tried some more that have... of course... failed.
C3 = new ImageIcon(VP2CPConverter.class.getResource("/C3.png"));
.
C3 = new ImageIcon( VP2CPConverter.class.getClassLoader().getResource( "C3.png" ) );
In a brief troubleshooting attempt, I even tried getResourceAsStream() to find out every resource available when the Jar executes. Inside the IDE, all of them. In the Jar... NONE of them.
Somebody shoot me now.