Originally posted by Paul Keohan:
Seeing as it's possible to run all dos commands from a java file using the Process, there must be some way to just copy a file in it's entirety without having to rebuild it byte by byte.
If you can do something from the command line, then you can do the same thing from Runtime.exec()
I don't know enough about the command line use of jar or winzip to help.
With regards to the doubling of the file size and not being able to access the extracted file. I can't explain that. The code worked perfectly on my machine. What version of the JDK are you using? I tested on Sun JDK 1.3.1 and IBM JDK 1.2.2. with Winzip 8.0