This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 63349

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Rob Spoor

Joined: Oct 27, 2005
Posts: 20132

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!