• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

? 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?
0
geff_chang
Asked:
geff_chang
1 Solution
 
Tommy BraasCommented:
I believe that compress supports the Zip format. Try that first.
0
 
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/
0
 
sciuriwareCommented:
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.

;JOOP!
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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

http://www.devshed.com/c/a/Java/Zip-Meets-Java/
0
 
CEHJCommented:
Why not just jar?
0
 
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.
0
 
sciuriwareCommented:
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.

;JOOP!
0
 
CetusMODCommented:
PAQed with points refunded (125)

CetusMOD
Community Support Moderator
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now