I'm using the Asha 501 SDK with CLDC 1.1 and MIDP 2.1 and running this Midlet code:


I'm trying to load a spinning textured cube in the emulator.

It compiles fine but when it runs, I get the first IOException from the Image.createImage() method (I assume that's what it's flagging up, -I'm from C++ land, so I'm trying to figure this out as I go).

- javax.microedition.lcdui.Image.createImage(), bci=57
- MyCanvas.init(MyCanvas.java:50)
- MyCanvas.<init>(MyCanvas.java:25)
- MIDletMain.<init>(MIDletMain.java:7)

I have drag'n'dropped the pic1.png into the 501 IDE into the 'res' folder and asked the image to load from "/res/pic1.png".

What's problem here?

Many thanks,