Creating a File object out of the contents of jar/zip file

K

kotauk

Hi,
How to create a File object of .java file contained in jar/zip file.
For eample i have a zip like test.zip
It has a file mypack.today.MyProg.java

Give the jar file how to create File object of the MyProg.java.

Any pointers would be great help

thanxs
kota
 
F

Fred Kleinschmidt

Hi,
How to create a File object of .java file contained in jar/zip file.
For eample i have a zip like test.zip
It has a file mypack.today.MyProg.java

Give the jar file how to create File object of the MyProg.java.

Any pointers would be great help

thanxs
kota

jar -x filename jarname > retrieved_file
 
K

kotauk

Hi Fred,
I want to create java.io.File object programatically while reading
the jar using java.util.jar.JarFile


thanks
kota
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top