• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

HELP!! I can't see my picture  RSS feed

 
Greenhorn
Posts: 3
  • 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
 
author
Posts: 1427
  • 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
  • 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.
 
Ranch Hand
Posts: 360
  • 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
 
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!