Error while implementing XSSF example <p>I want to read large Excel files (.xlsx) with java. Apache has an example how to go this <a href="http://poi.apache.org/spreadsheet/how-to.html#xssf_sax_api" rel="nofollow">here</a>. So I just copied the whole class, added the path to my .xlsx file and tried to execute it but I get this error:</p> <pre><code>Error:(96, 69) java: cannot access org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst class file for org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst not found </code></pre> <p>This error is triggered in this line in the method <code>endElement()</code>:</p> <pre><code>lastContents = new XSSFRichTextString(sst.getEntryAt(idx)).toString(); </code></pre> <p>I use this dependency for maven:</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;org.apache.poi&lt;/groupId&gt; &lt;artifactId&gt;poi-ooxml&lt;/artifactId&gt; &lt;version&gt;3.9&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>How do I fix this error?</p>