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

How is final different from finally and finalize?

483


Are arrays dynamic in java?

517


Write code to implement bubble sort in java?

545


Can we have two main methods in a java class?

528


What does method mean?

504






What are the high-level thread states in java programming?

566


what is inner class in java?

613


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

689


What is close method? How it's different from Finalize & Dispose?

549


How do you sort arrays in java?

509


What does nextint () do in java?

540


What is a flag variable?

546


Can we start a thread twice in java?

502


How do you implement tree mirroring in java?

577


What is a linkedhashmap java?

537