elOpalo wrote:When it comes to these forums, you would be surprised what is and what is not obvious. Without knowing the context of your requirement I gave the most straight forwards solution that I could think of. Yes, you can use JarInputStream and JarOutputStream within Java but there are pitfalls and again the context is important. If you are trying to modify the currently executing Jar file then you probably need to re-think your design.
Thanks but your's hint is obvious. Probably my question was inaccurate - I need to do it in java without using any out-of-the-box tools. I've just noticed that JarOutputStream class could be used - will try tomorrow at work.