• Post Reply Bookmark Topic Watch Topic
  • New Topic

Image:Couldn't Find Resource  RSS feed

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to display an image in a midlet,however,when i try to create an image, an error message : "couldn't find resource" is displayed.i have checked the location of my image but it still doesn't work. can anyone tell me what maybe wrong?thanks in advance.
 
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the J2ME forum. Please continue this discussion there. Thank you
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like it might be the familiar problem of not having an 'absolute path' for your image. I.e., you should call:

If you leave off the initial '/', the VM goes looking for the resource in some strange place not actually specified in the MIDP spec.
David
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!