Hello i'm trying to load a tiny starship in a starfield, but the problem is there is no problem loading in the java's wireless toolkit 2.0 emulator, but when using Nokia Developer's Suite's default 6310i MIDP SDK 1.1 it failed. I will show my portion of code below:
in the wireless toolkit status message "created image" will always show but in the nokia emulator "create image failed" will always show, but i never change the position of my image "ship.png" which is in the Starfield\res\ folder.
Could somebody please help?? I worked on these for few days with no results, thanx a million!
It is my experience that different tools pack the files in the jar in different ways. For example, you're example works with the WTK but if you were using JBuilder then you would need to put the image in the "src" folder. Try putting the image in different folders around your project, or playing with the path you use in your code (maybe "/res/ship.png" or "res/ship.png" or just "ship.png").
thanx everybody that read and thanx shmoove for answering my question, however i figured out the problem. Somehow png files made using Microsoft Windows's Paint can't work in the Nokia handphones, i don't know why, perhaps something to do with formatting and stuff, any suggestions? I used ProMotion to create then voila it loads!