Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jar and manifest

 
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
Saloon Keeper
Posts: 15274
38
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