This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jar and manifest  RSS feed

 
Justin Samuel
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am new to Java programming. Can you please suggest me of what exactly is a jar file and especially the manifest file within it.

Regards,
-Justin Samuel
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jar is a way to bundle all you java class files and resource for easy delivery .Imagine you want to email a set of files to your friend.For convenience you would zip that and attache in email.

It also has a MENIFEST.MF file for storing metadata information about the content of the jar.
Even you can put the main class name in an attribute of MENIFEST.MF file to make the jar executable.You can have your own custom attribures also.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
 
Justin Samuel
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for that explanation
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!