Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit jar files with python

Tags:

java

python

jar

Do you know a python module with which i can add files to a JAR archive?

(what i wan't to do is add .class files to a jar archive)

and the program that has to do it has to be written in python

Thanks!

like image 701
tgoossens Avatar asked Aug 10 '11 17:08

tgoossens


1 Answers

.jar files are just .zip files with a different file extension and a manifest.

Try http://docs.python.org/library/zipfile.html

like image 104
Leopd Avatar answered Oct 05 '22 16:10

Leopd