How to create a jar file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vishvanathannn
    New Member
    • Apr 2010
    • 5

    How to create a jar file?

    When i extract a jar file, it is successfuly extracting, but when i archive the same files into a jar file it is showing an error why?
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    What error you are getting. What options you specified during creating the jar file?

    It's hard to guess what may be wrong.
    Did you Google?

    Regards
    Dheeraj Joshi

    Comment

    • ThatThatGuy
      Recognized Expert Contributor
      • Jul 2009
      • 453

      #3
      Originally posted by Vishvanathannn
      When i extract a jar file, it is successfuly extracting, but when i archive the same files into a jar file it is showing an error why?
      you can extract the jar archive but you can't archive it back..

      Compiling project resources to jar is the job of the compiler .. and only the compiler knows how to create a jar archive..
      So you can't..

      Although it may look like a zip compression but a jar is compressed in some other way.. even zip and rar are not compressed the same way

      Comment

      Working...