Link to home
Start Free TrialLog in
Avatar of Ravi Kiran Reddy Katkuri
Ravi Kiran Reddy KatkuriFlag for Australia

asked on

jar using ant tool Vs jar using jar utility avail with jdk

Are there any difference between the jar file created using ant tool and creating manually with the help of jar utility, available with jdk.  Because there is a size difference when I modify a jar file its size gets reduced by half.

Jar file has 600 kb.  I extract it and replace it with the modified file (though I can use mf option).  When I do jarring again that jar only shows 312 kb.  I could not find out what exactly went wrong.
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The first one may have been using no compression at all
Avatar of Ravi Kiran Reddy Katkuri

ASKER

can you please answer below questions related to comparision:
1. What comparition is done in the jar files.
2. What kind of comparision is included in the jar while creating
3. What is the sintax to include the comparision in the jar files, while creating the Jar in, command line/ant parameters
1. Zip compression is done unless specified none ( -0 )
2. Don't understand - only entries are compressed (see 1)
3. jar has only the option not to compress (see 1) Ant uses level="0" to level="9"