title: Java code in Netbeans works but executing jar through cmd prompt gives nosuchmethod error exception
body: <p>i have made a Java program in Netbeans to edit Excel file using poi libraries
  the code works fine in Netbeans but after building the jar file and executing it through command prompt gives a error when a call to some function is made that is there is external jar.</p>
  
  <p>However i have included the target code in bulid.xml.. the jar file created in store also doesnot work and also the jar file created in dist folder also gives this error:</p>
  
  <p><code>Exception in thread "AWT-EventQueue-0" java.lang.Nosuchmethoderror: org.apache.xmlbeans.xmloptions.setsaveaggresivenamespaces()Lorg/apache/xmlbeans/xmloptions;</code></p>
  
  <p>I have checked the class <code>org.apache.xmlbeans.xmloptions</code> is present in the jar file.</p>
  
  <p>Any thoughts?</p>