The jar Tool : Introduction « Language « Java Tutorial

Java Tutorial
1. Language
2. Data Type
3. Operators
4. Statement Control
5. Class Definition
6. Development
7. Reflection
8. Regular Expressions
9. Collections
10. Thread
11. File
12. Generics
13. I18N
14. Swing
15. Swing Event
16. 2D Graphics
17. SWT
18. SWT 2D Graphics
19. Network
20. Database
21. Hibernate
22. JPA
23. JSP
24. JSTL
25. Servlet
26. Web Services SOA
27. EJB3
28. Spring
29. PDF
30. Email
31. J2ME
32. J2EE Application
33. XML
34. Design Pattern
35. Log
36. Security
37. Apache Common
38. Ant
39. JUnit
Java
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Tutorial » Language » Introduction 
1. 1. 10. The jar Tool

The jar tool creates a JAR archive file by combining multiple files of a Java application.

The jar tool compresses content based on the ZIP and ZLIB compression formats.

You can also use the jar tool to extract the content of a JAR file.

The syntax to use the jar tool is:

Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dirfiles
OptionDescription
cCreates a new archive.
tLists the contents of an archive.
xExtracts contents from an archive.
uUpdates an existing archive.
vDisplays output at the command prompt while the jar tool performs an operation.
fSpecifies the name of the archive file.
mIncludes a specified manifest file in the archive.
oInstructs the jar tool not to compress content.
MInstructs the jar tool not to create a manifest file for an archive. The jar tool, by default, creates an empty manifest file in an archive.
CSpecifies the directories to include in the archive.


1. 1. Introduction
1. 1. 1. Developing a Java program involves
1. 1. 2. JDK Utilities
1. 1. 3. See the details of the compilation: use the verbose option
1. 1. 4. A profiler is used to analyze how much time a program spends in each part of the code.
1. 1. 5. The syntax to use the javac tool
1. 1. 6. Java Compiler Options
1. 1. 7. The java Tool
1. 1. 8. Commonly Used Java Command Options
1. 1. 9. The javadoc Tool
1. 1. 10. The jar Tool
1. 1. 11. The javap Tool
1. 1. 12. Some of the Options Supported by the javap Utility
1. 1. 13. The jarsignature Tool
1. 1. 14. The native2ascii Tool
1. 1. 15. The jconsole Tool
1. 1. 16. Set the memory available to the JVM
1. 1. 17. Java memory command line arguments
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.