using jar on the windows command prompt, how can I add foo.class to a folder “classes” in foo.jar?
I can add the file to the jar using
jar uvf foo.jar foo.class
but that doesn’t put the class in the “classes” folder in the jar.
I know I can use winzip to unzip the jar, add the file, and zip it up again, but that’s slow and hopefully unnecessary.
Put
foo.classinto aclassesdirectory, then run(I’ve just tried it to make sure it works. There may a way of doing it without creating the
classesdirectory, but I think this is the simplest solution.)