Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
Read files within a .jar
Xavier Poves
Greenhorn
Joined: Jan 25, 2006
Posts: 2
posted
Feb 07, 2006 12:00:00
0
Hello!
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".
Thanks!
[ February 07, 2006: Message edited by: Xavier Poves ]
Garrett Rowe
Ranch Hand
Joined: Jan 17, 2006
Posts: 1295
posted
Feb 07, 2006 12:25:00
0
From the command line you can type:
jar xf fileName.jar
Garrett
[ 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:
http://aspose.com/file-tools
subject: Read files within a .jar
Similar Threads
How Can I Create a Runnable JAR File in Eclipse, Including Java Source Code?
Parse XML file that is in a JAR file
Can I add folder in WEB-INF/lib ?
Read files inside a .jar of a remote server
Bluetooth Apps using Nokia 6600
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter