Alaa
06-03-07, 09:10 PM
I am trying to create a jar file for my classes. One of those classes contain this line:
private final Icon redIcon = new ImageIcon( getClass().getResource( "red.gif" ) );
Obviously I am trying to make an Icon but trying to run the .jar file from cmd always yields error in this line. WHYYYYY?:headexplode:
private final Icon redIcon = new ImageIcon( getClass().getResource( "red.gif" ) );
Obviously I am trying to make an Icon but trying to run the .jar file from cmd always yields error in this line. WHYYYYY?:headexplode: