Problem to load image under Palm env
Hi,
I try to load an image like:
image = Image.createImage("/logo.png");
I run this under Ktoolbar I've put the logo.png in /res dir. When I try with motorola I see the picture when i run under pose I receive :
java.io.IOException: Couldn't find resource
How to find the ressource for both environement ? where to put the image ? and the path to give on createImage ?
Thanks
Richard Grossman
[449 byte] By [
richiegr] at [2007-9-26 15:55:59]

Hi,
Sorry but here is the last replay for this thread:
hi,
thanks again, now it's working, i wrote wrong the package path on the settings in the ktoolbar.
Now i see my "beautiful icon" on the phone emulator running the midlet in the ktoolbar, and also it finds the other resource files, but when i convert the jar-jad files to a prc file for the Palm emulator, even that the png files are in the jar file, i dont see the icon in the palm emulator and i think i get an exception or something that i dont see 'cos the program doesn't respond to my pointer events...but i dont think this has something to do...
bye,
Laura
She has exactly the same problem It's work under the phone emulator but not undre POSE emulator any hint ?
Thanks
Richard
Hi,
Sorry but here is the last replay for this thread:
hi,
thanks again, now it's working, i wrote wrong the package path on the settings in the ktoolbar.
Now i see my "beautiful icon" on the phone emulator running the midlet in the ktoolbar, and also it finds the other resource files, but when i convert the jar-jad files to a prc file for the Palm emulator, even that the png files are in the jar file, i dont see the icon in the palm emulator and i think i get an exception or something that i dont see 'cos the program doesn't respond to my pointer events...but i dont think this has something to do...
bye,
Laura
She has exactly the same problem It's work under the phone emulator but not undre POSE emulator any hint ?
Thanks
Richard
Hi,
Sorry but here is the last replay for this thread:
hi,
thanks again, now it's working, i wrote wrong the package path on the settings in the ktoolbar.
Now i see my "beautiful icon" on the phone emulator running the midlet in the ktoolbar, and also it finds the other resource files, but when i convert the jar-jad files to a prc file for the Palm emulator, even that the png files are in the jar file, i dont see the icon in the palm emulator and i think i get an exception or something that i dont see 'cos the program doesn't respond to my pointer events...but i dont think this has something to do...
bye,
Laura
She has exactly the same problem It's work under the phone emulator but not with Prc and POSE emulator
Any hint ?
Thanks
Richard