File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes HELP!! I can't see my picture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "HELP!! I can Watch "HELP!! I can New topic

HELP!! I can't see my picture

aditya kusumo

Joined: Mar 04, 2004
Posts: 3
Hi guys, i have a little trouble with my application. I've build an application, and it run well in KToolbar. When i make package (*.JAR, *.JAD) with KToolbar and run it in "Run Application" my application can't show the picture and it stops running. I 've uncomment the picture and it run well but without picture. What wrong with my apps? How to make my picture showed? Below is the code
Michael Yuan
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
when you package your JAR file, you need to put in the duke.png file at the root level of the class packages.

Seam Framework:
aditya kusumo

Joined: Mar 04, 2004
Posts: 3
hi michael, thanks for the answer but i don't know where i must placed the picture. The JAR file was in C:\WTK104\apps\KendaliAC\bin, and i have placed it in the same folder and i've tried to placed it in C:\WTK104\apps\KendaliAC\, but it still didn't work. The picture didn't showed and my application didn't run (hang). where i must placed the picture? My friend have the same problem too. Thanks for ur help.
Pavel Kubal
Ranch Hand

Joined: Mar 13, 2004
Posts: 360
you should place your image into res directory
example :
I agree. Here's the link:
subject: HELP!! I can't see my picture
It's not a secret anymore!