title: I get an Exception when trying to read an excel
body: <p>I'm trying to read a simple .xlsx in java:</p>
  
  <pre><code>private void readExcelData(String excel) throws Exception {
      FileInputStream file = new FileInputStream(excel);
      XSSFWorkbook workbook = new XSSFWorkbook(file);
      XSSFSheet sheet = workbook.getSheetAt(0);
  }
  </code></pre>
  
  <p>but i get the following Exception in thread:</p>
  
  <pre><code>"AWT-EventQueue-0" java.lang.IncompatibleClassChangeError: Found interface org.apache.poi.util.POILogger, but class was expected
  </code></pre>
  
  <p>I had to add xmlbeans-2.6.0.jar or it gives me:</p>
  
  <pre><code>Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException
  </code></pre>
  
  <p>Maybe it has something to do with that. I also added the compile and runtime depencies like someone suggested from here: <a href="https://mvnrepository.com/artifact/org.apache.poi/poi/4.1.0" rel="nofollow noreferrer">https://mvnrepository.com/artifact/org.apache.poi/poi/4.1.0</a>
  But it didn't solve my problem </p>
  
  <p>Does someone have a solution ?</p>