Displaying an image in a form

hi,

i am trying to display an image in a form. The code worked fine in j2me emulator, but when i converted the program to a jar and ran the same program in my mobile phone.

i get an exception in Image.createImage(..method

and exception value is just null.

i know the image is not found in the specified location. but the image is there in the jar file.

how do i solve this issue?

thanks in advance.

[443 byte] By [pablo_aimara] at [2007-10-3 11:41:05]
# 1
hi can i see your code?
olrac_clowna at 2007-7-15 14:10:26 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

Its definitly the heap size image, it can be case that image size is very large, u just try by optimizing the image and decreasing the size of image,

or

the image size(widht*height) is larger than actual phone screen

try with small image(small width*height) you will come to know the problem

@rjun

arjunamatea at 2007-7-15 14:10:26 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
So you get a NullPointerException?.Mihai
Printisora at 2007-7-15 14:10:26 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
You can just try to find out the image sizes supported by your mobile and then use the appropriate image in your MIDlet this will solve your problem.reply if not solved
kunal_java_j2mea at 2007-7-15 14:10:26 > top of Java-index,Java Mobility Forums,Java ME Technologies...