Using the standard Java API (i.e. the user doesn't need the JDK to run it), how do you make a function similar to jar -uf in Java? I have an idea that it will use the Zip library, unzip the .jar file, change the contents, and then rezip it, but I'm a newbie at Java, so I cannot really make it. Could you give an example or a function?
Thanks!
Edit: I think I found the answer here: How to use JarOutputStream to create a JAR file? I'll see if it works.