
steps to create jar file with example

Steps:
1) Start Command Prompt.
2) Navigate to the folder that holds your class files:
C:>cd \examples
3) Set path to include JDK?s bin. For example:
C:\examples> path c:\Program Files\Java\jdk1.5.0_09\bin;%path%
4) Compile your class(es):
C:\examples> javac *.java
5) Create a manifest file:
C:\examples> echo Main-Class: Examples>manifest.txt
6) Create a jar file:
C:\examples> jar cvfm Examples.jar manifest.txt *.class
7) Test your jar:
C:\examples> Examples.jar
For more information, visit the following link:
http://www.roseindia.net/tutorial/java/io/createJarFile.html
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.