File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Read files within a .jar
Joined: Jan 25, 2006
Feb 07, 2006 12:00:00
My doubt is how I can accede to (or read) the files of resources (images, sounds, etc...) which they are within a jar, for example "resources.jar".
[ February 07, 2006: Message edited by: Xavier Poves ]
Joined: Jan 17, 2006
Feb 07, 2006 12:25:00
From the command line you can type:
jar xf fileName.jar
[ February 07, 2006: Message edited by: Garrett Rowe ]
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
I agree. Here's the link:
subject: Read files within a .jar
Can I add folder in WEB-INF/lib ?
Parse XML file that is in a JAR file
How Can I Create a Runnable JAR File in Eclipse, Including Java Source Code?
Bluetooth Apps using Nokia 6600
Read files inside a .jar of a remote server
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014