Pregunta

Possible Duplicate:
Changing the code of the class from jar file

I'm coming with this from .Net, where there's Reflector and Reflexil, enabling me to open an assembly and edit its code without having to re-compile it. I did some research, and I've found jd-gui, which lets me view java code inside a jar, but I can't find anything that resembles reflexil.

Is there any software which would let me modify jars without having to re-compile them?

¿Fue útil?

Solución

A jar is just a zip, actually, so there's no recompiling. Just unjar it (using jar xf), add, replace or delete some files or directories, and jar it again (using jar cf).

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top