开发者

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

开发者 https://www.devze.com 2022-12-26 09:36 出处:网络
What exactly is a .jar 开发者_开发知识库file and how do i create one? According to wikipedia, JAR is an archive format used by Java to combine classes into one application or library.

What exactly is a .jar 开发者_开发知识库file and how do i create one?


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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号