Delete file from jar file

HiCan anybody tell me how to delete a specific file from a jar programticaly? Any open source library is available?ThanksJobinesh
[157 byte] By [Jobinesha] at [2007-11-27 8:58:43]
# 1
if you mean "delete it from inside a java program", maybe you can take a look at JarURLConnection class, with getJarFileURL method
calvino_inda at 2007-7-12 21:25:17 > top of Java-index,Java Essentials,Java Programming...
# 2
thank you very much Calvino for the response.Yes I mean to deletet the file from jar inside a java program. I happened to look at the JarURLConnection class , but didn't able to find anything useful. Can you pls explain in detailThanksJobinesh
Jobinesha at 2007-7-12 21:25:17 > top of Java-index,Java Essentials,Java Programming...
# 3
I don't think it's in the standard, actually. A jar file is basically a zip, and when you delete from a zip you generally just create a new version without the deleted files.jar files are not modified, they are rebuilt.
malcolmmca at 2007-7-12 21:25:17 > top of Java-index,Java Essentials,Java Programming...
# 4
May be useful for others... http://www.java-tips.org/blog/java-se/how-to-modify-a-jar-file.html
Jobinesha at 2007-7-12 21:25:17 > top of Java-index,Java Essentials,Java Programming...