You should really start using search option on this forum - it's loaded with answers for those question.
You will find lots of docs and link from OTN forum as well as Google.
This should work in Oracle 9i using Java.
Links for your reference.
Hope it helps you.
In this I've to compress(ZIP) files.
Then use a compression utility and zip the files. There are plenty of those utilities available on the web.
Your question has NOTHING to do with Oracle so please mark the thread ANSWERED.