Read-only archive of the All About Symbian forum (2001–2013) · About this archive

P800(UIQ) problem with images!

3 replies · 2,042 views · Started 14 June 2003

I have been pulling my hair over this... I just wanted to do a simple app which shows a image, sounds easy right ?... well, it is, problem is that the emulator wont draw my image.. it works when you just run it as a simple pJava application but it wont show my image in emulator mode...

The problem seems to be that the emulator does not find my image, because when I print out the size of the image it is -1 when I am running the emulator but the "real" pJava app prints out the correct size.

To fetch the image I use : imgLogo = Toolkit.getDefaultToolkit().getImage("julian.gif"😉;

I have tried it with ".\\" and "./" also, did not solve anything

Anyone that has had problems with this ?

Thanks

Is your image located in the same place where your .class file is? And the classpath points to that directory?

Regards,

/Cruizer.

Thanks for answering...

The problem is probably that the application is run from the .jar file and I cant get CodeWarrior to include my image-file to the .jar file...

Any clues?

Thanks