Go Back   nV News Forums > Software Forums > Software Development

Newegg Daily Deals

Reply
 
Thread Tools
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
Old 06-03-07, 08:11 PM   #2
Alaa
Peace
 
Alaa's Avatar
 
Join Date: Apr 2005
Location: Cairo
Posts: 431
Default 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!
Alaa is offline   Reply With Quote
Old 06-03-07, 09:13 PM   #3
Clay
Registered User
 
Clay's Avatar
 
Join Date: Oct 2002
Posts: 4,993
Default Re: Java Image

Yeah, Java is a case sensitive language.
Clay is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google (partially) loses suit to Oracle over use of Java API's ViN86 Mobile Devices And Smartphones 3 05-17-12 10:25 AM
BAH! I'm being driven insane by Java Virtual Machine Kruno General Software 9 09-01-02 09:59 PM
Drive Image 2002 or Ghost? saturnotaku General Software 6 08-21-02 09:55 AM
GF4 Ti4200 - how center tv out image? kipper NVIDIA Linux 2 08-01-02 11:56 PM

All times are GMT -5. The time now is 08:24 PM.


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