Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to start a process??

 
Ann Toh
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can anybody tell me how to write a java program that can control winzip? That is the java program call the winzip, then the winzip will unzip all the files. If can, show me an example.
Thanx in advance!
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be java.util.jar.JarFile will help. Lemme know the result.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think WinZip has a command-line interface, so I don't think it can be controlled from Java. If it does have a command-line component, then you can use the Runtime.exec() family of methods to launch it. But as Pradeep points out, you can unzip ZIP files directly from Java using the java.util.zip package.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chekc out this topic:
http://www.coderanch.com/t/321925/java/java/Java-ZIP-UNZIP
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic