title: Reading data from Excel sheet 2007 in JAVA
body: <p>I am having a problem when trying to read an Excel 2007 spreadsheet (.xlsx).  I am trying to implement the method in JAVA by using the <a href="http://poi.apache.org/" rel="nofollow">POI library</a>, but I get this error: </p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.NoClassDefFoundError:
    org/apache/xmlbeans/XmlException</p>
  </blockquote>
  
  <p>and this is my method: </p>
  
  <pre><code>public void No_rows() throws IOException  {
      File inputWorkbook = new File(inputFile);
      FileInputStream w = new FileInputStream(inputWorkbook);
      XSSFWorkbook workbook = new XSSFWorkbook(w);
      XSSFSheet sheet = workbook.getSheetAt(0);
      Iterator rows = sheet.rowIterator();
      int number=sheet.getLastRowNum();
      this.num_rows = number;
      w.close();
  }
  </code></pre>