Thread: Java Image
View Single Post
Old 06-03-07, 07:10 PM   #1
Alaa
Peace
 
Alaa's Avatar
 
Join Date: Apr 2005
Location: Cairo
Posts: 431
Default Java Image

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?
Alaa is offline   Reply With Quote