In this tutorial we see what is Jar , War and Ear files in Java enterprise development, and also see what is the difference and usage of these files. What is Jar ? How to Create Jar file ?
> jar -cvf test.jar HelloWorld.class
-c means create file
-v to generate the verbose output
-f to specify the file name
In above jar command we are creating test.jar which have HelloWorld.class file. For more info […]