title: Why poi-4.1.2 for xls dos not find dependencies even though classpath is right?
body: <p>I am building a simple project using Ant (not Maven as I need the project to be build and distributed in an .msi package when it is finished), added all the dependencies according to <a href="https://www.codejava.net/coding/how-to-read-excel-files-in-java-using-apache-poi" rel="nofollow noreferrer">this</a> article (end even more poi jar files) to the classpath and still I am getting the following error:</p>
  <p>Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: org/apache/commons/math3/util/ArithmeticUtils</p>
  <p>It seems that there are more dependencies that the poi-4.1.2.jar file does not contain.  Can I add them by hand or will it require more dependencies after that?  And where do I have to look. (org.apache.commons.*)</p>
  <p>As said building this project with Maven is not an option.</p>
  <p>Here are all the imports I have in my class that fails to compile:</p>
  <pre><code>import java.io.File;
  import java.io.FileInputStream;
  import java.io.IOException;
  
  import org.apache.poi.ss.usermodel.Cell;
  import org.apache.poi.ss.usermodel.Row;
  import org.apache.poi.ss.usermodel.Sheet;
  import org.apache.poi.ss.usermodel.Workbook;
  import org.apache.poi.hssf.usermodel.HSSFWorkbook;
  </code></pre>
  <p>And those are the jar files added to the Libraries in NetBeans</p>
  <pre><code>poi-4.1.2.jar
  poi-excelant-4.1.2.jar
  poi-ooxml-4.1.2.jar
  poi-ooxml-schemas-4.1.2.jar
  xmlbeans-3.1.0.jar
  </code></pre>