Question: Need to execute the below winzip command in a java program.

```
C:\Program Files\WinZip>winzip32 -a -s"password" C:\abc.zip C:\abc.doc
```

Answer: 
You can simple use [Runtime.exec()](http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html#exec(java.lang.String[]));

```
String[] cmd = {"C:\\Program Files\\WinZip\\winzip32", "-a", "-s", "password", "C:\\abc.zip", "C:\\abc.doc"};
Runtime.getRuntime().exec(cmd);

```
Taking a look around the internet, would this do what you're looking for: <https://truezip.dev.java.net/> without having to rely on an external install of WinZip which may or may not exist on the end user system? Just a suggestion.