Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes Packaging an application with image file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Packaging an application with image file" Watch "Packaging an application with image file" New topic
Author

Packaging an application with image file

ahmed yehia
Ranch Hand

Joined: Apr 22, 2006
Posts: 424
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

Joined: Dec 13, 2006
Posts: 182
How are you reading this image? you should use ClassLoader.getResourceAsStream
ahmed yehia
Ranch Hand

Joined: Apr 22, 2006
Posts: 424
thats solve the problem
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Packaging an application with image file