View Full Version : Java Image

06-03-07, 07: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:

06-03-07, 08:11 PM
lol I found the solution after reading 20 pages or something: I had to write it .GIF instead of .gif !!!!!!!!!!!!!!!!!!!!!!!! damn Java!

06-03-07, 09:13 PM
Yeah, Java is a case sensitive language.