开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜