posted 22 years ago
Hello Everybody,
Ok I think it is now the appropriate time to ask this questions after all my trials.
I have a jar file which has following types of files:
File name Directory Structure
test.class /
makePanel.class /test
pic1.gif /images/pic
pic2 /images
abc.ict /
xyz.id /images/pic
where xyz.id and abc.ict are simple text files with a change in extension. Now problem is in extracting it... As the documentation goes that I have to use ClassLoader to load same before using.. I tried the following:
For Images:
It works.
2. Now problem comes in when I want to read all the files from the directory /image/pic.. In a normal case I was trying the following code snippet...
but failed to retrieve same from jar file with the above concept.
if i tried with:
It doesn't work...perhaps the path it is giving is:
jar:file:/E:/test/test.jar!/images/pic
Can somebody help me in this regard...
regards,
arun