aspose file tools*
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 Java 8 in Action this week in the Java 8 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
 
Similar Threads
Cannot cast org.hibernate.validator.util.LazyValidatorFactory to javax.validation.ValidatorFactory
Logging problem log4j:ERROR
classpath (what?, why? and how?)
Joboss deployment error
JPA + JBoss = java.lang.ClassCastException