? tool for windows that is the same as linux compress

my java project requires that i use linux's "compress" command,
because the system is to be deployed on a linux server.

other than using the linux OS (because i'm on windows),
is there any other way to exactly emulate linux's "compress"
command, like an executable for example?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tommy BraasCommented:
I believe that compress supports the Zip format. Try that first.
Tommy BraasCommented:
You can create both Zip and GZIP files from inside Java. You need to use GZIP, not Zip as I stated earlier.

There is a Windows executable for gzip which will create compress compatible archives here http://www.gzip.org/
The good old compress is NOT zip or gzip because of some patent
by Sperry (now Unisys).
But the C-source might be still around on BSD or such.
You should look into converting all operations to GZIP
which is implemented in JAVA.
I already searched for a compress class for JAVA during 3 years and in vain.

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
check out this link as it also you to create a zip file using java it self.

Why not just jar?
geff_changAuthor Commented:
thanks for your interesting suggestions,
but the "compress" command is necessary, as it is to be run on linux,
and the requirements specifications requires it to be compressed and sent
to a server in that manner.

i guess i must really work on linux and use the Runtime class to execute compress.
geff_chang didn't get it that alternatives exist for 'compress'.
I found one source of 'compress'-code, nl. in Total Commander by Ghisler,
but then it's easier to use the C-source from UNIX.
There is no JAVA code available compatible with compress.

The questioner found a solution (Runtime.exec() ) that I too found.
However, the question was: is there ...
and the good, although disappointing, answer is NO.
I don't know what rewards to what grade are usual in such a case.

PAQed with points refunded (125)

Community Support Moderator

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.