How
to Make a jar file using jar command ?
Step1: Compile
your java file
command: javac HelloWorldSwing.java
command: javac HelloWorldSwing.java
Step2: Create a manifest file containing
your main class name
I have
added a
Example: Main-Class: HelloWorldSwing
Step3: Make jar file by command
command: jar -cvfm MyJarName.jar
manifest.txt *.class
By Clicking
on MyJarName.jar
N.B. :
Jar command video download link : Click for download
Some Java Programming Exercise Download Link : Click for download