Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

cannot create image from image in res folder  RSS feed

 
Joel Karimpil
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i am using an image in the res folder to create an image using the Image.createImage("/progress.gif") function.
however it returns an IO exception .
i do not understand why?
plz somebody herlp soon.
 
Aryan Khan
Ranch Hand
Posts: 290
Java Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Make sure that the filename is correct and same case as defined in your code including the extension.
 
Reggie McDougal
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting an OI error with create image, I have the files in a res directory, casing all ok, I'm using eclipse, it don't make sence must be an eclipse problem




 
Why is the word "abbreviation" so long? And this ad is so short?
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!