how to create a jar file in java

Answer Posted / rukumani khandhan

Java Archive (JAR) files are compressed files into which
you can store many files.
To create a JAR file, go to the directory where your files
are located and type:

jar -cf <jarfilename>.jar *.*

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is boolean strategy?

855


What is static method with example?

856


What is replacefirst in java?

765


What data type is a string?

719


What does microservices mean?

698


What is difference between an object and a class?

807


Difference between arraylist and vector.

804


Is empty in java?

789


Why is java called the platform independent programming language?

779


Can you explain the meaning of aggregation and composition

756


What is private protected in java?

778


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

879


What is parsing in java?

704


Can a function return a function?

766


Explain importance of finally block in java?

786