well thanks for the reply,but JarFile class couldn't help that much as it contains some constatns ,dont know how to use them........ I would appreciate if someone could give me sample code
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35224
7
posted
0
JarFile can do this, just ignore the parts you don't understand. If you just want to read a jar file, they're irrelevant. There are some code examples here.
hi Waez, check out the code i have given here.... if the filelength returns -1 u must try to read the data from the jar entry in chunks or set the filelength to some max value say 100 bytes.... replace temp.class with any file that u want to read
hope this code help you
import java.util.jar.*; import java.io.*; public class Readfromjar {