Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jar file  RSS feed

 
brisk rook
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i create a jar file..
I have a directory named javapro15 (c:\javapro15) in which i have the files & directories related to my project. how do i create a jar file for the entire directory javapro15 (when i extract the jar file, i should have the same directory structure similar to the original one).
thanks a lot
br
 
Rehan Malik
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jar -cvf OutputJarName.jar FilesOrDirectory

That's one way. Another way to do it is just use winzip and zip up the foler and rename the extension to *.zip (unless you need the manifest file in there)
 
brisk rook
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rehan Malik:
jar -cvf OutputJarName.jar FilesOrDirectory

That's one way. Another way to do it is just use winzip and zip up the foler and rename the extension to *.zip (unless you need the manifest file in there)


thanks rehan..it helped me a lot
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!