nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   Software Development (http://www.nvnews.net/vbulletin/forumdisplay.php?f=53)
-   -   Java Image (http://www.nvnews.net/vbulletin/showthread.php?t=92647)

Alaa 06-03-07 07:10 PM

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?:headexplode:

Alaa 06-03-07 08:11 PM

Re: Java Image
 
lol I found the solution after reading 20 pages or something: I had to write it .GIF instead of .gif !!!!!!!!!!!!!!!!!!!!!!!! damn Java!

Clay 06-03-07 09:13 PM

Re: Java Image
 
Yeah, Java is a case sensitive language.


All times are GMT -5. The time now is 06:55 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.