File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "diff between -cvf and cf" Watch "diff between -cvf and cf" New topic
Author

diff between -cvf and cf

swathi valasala
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 61457
    
  67

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
Sheriff

Joined: Oct 27, 2005
Posts: 19726
    
  20

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ben Souther
Sheriff

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: diff between -cvf and cf