David
David

Reputation: 14953

What exactly is a .jar file and how do i create one?

What exactly is a .jar file and how do i create one?

Upvotes: 1

Views: 607

Answers (1)

Egor Pavlikhin
Egor Pavlikhin

Reputation: 17981

According to wikipedia, JAR is an archive format used by Java to combine classes into one application or library.

It is essentially a zip archive with some additional information, such as a manifest.

To create one just use jar command inside the folder where you store your classes.

jar -cf my.jar *.class

Upvotes: 5

Related Questions