Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Packaging an application with image file

 
ahmed yehia
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im packaging an application which consists of a class file and image file
is it possible to put the 2 files into 1 jar file for deploy. the prob I got is after packging the program doesnt read image included in the jar, to work the program needs to read image from outside.
 
Ajay Singh
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you reading this image? you should use ClassLoader.getResourceAsStream
 
ahmed yehia
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thats solve the problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic