title: Remove file from *.jar, using script
body: <p>I have next package structure  </p>
  
  <p>webService.ear -- dependency.jar -- some.class</p>
  
  <p>Can I remove <strong>some.class</strong> from .ear using cmd script and bash script?  </p>
  
  <p><strong>Solution:</strong><br>
  I wrote cmd script for this:  </p>
  
  <pre><code>call unzip target\webService.ear -d tmp
  call zip -d target\tmp\dependency.jar \com\mypackage1\MyClass1.class
  call zip -d target\tmp\dependency.jar \com\mypackage2\MyClass2.class 
  call jar cvfM target\webService.ear -C tmp .
  </code></pre>
  
  <p>May be, this will be helpful for someone</p>