File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP!! I can't see my picture

 
aditya kusumo
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Ranch Hand
Posts: 1427
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when you package your JAR file, you need to put in the duke.png file at the root level of the class packages.
cheers
Michael
 
aditya kusumo
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 360
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should place your image into res directory
example :
C:\WTK104\apps\KendaliAC\res\picture.png
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic