File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes diff between -cvf and cf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "diff between -cvf and cf" Watch "diff between -cvf and cf" New topic

diff between -cvf and cf

swathi valasala

Joined: Feb 24, 2008
Posts: 4
jar cvf example.war .
jar -cvf example.war . whats the difference between them please send reply im using windows when i used the jar -cvf example.war. is it correct
[ February 29, 2008: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63552

A few things. First, please do not post in all uppercase -- read this for more information.

Also, please take the time to choose the correct forum for your posts. This forum is for questions on Servlets.

This post has been moved to a more appropriate forum.

[Asking smart questions] [About Bear] [Books by Bear]
Rob Spoor

Joined: Oct 27, 2005
Posts: 20202

The v stands for verbose, which means it's exactly the same except cvf prints a lot more information to your console.

How To Ask Questions How To Answer Questions
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The v is for verbose.

If you type just jar at the command line, you should see a help screen with a list of the switches and what they do:

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: diff between -cvf and cf
It's not a secret anymore!