title: Why am I getting a NoClassDefFoundError in the pdfXFA example?
body: <p>Trying the example found from here: <a href="https://itextpdf.com/en/products/itext-7/pdfxfa" rel="nofollow noreferrer">https://itextpdf.com/en/products/itext-7/pdfxfa</a></p>
  
  <pre><code>public static void main() {
          XFAFlattenerProperties flattenerProperties = new XFAFlattenerProperties()
                  .setPdfVersion(XFAFlattenerProperties.PDF_1_7)
                  .createXmpMetaData()
                  .setTagged()
                  .setMetaData(
                          new MetaData()
                              .setAuthor("iText Samples")
                              .setLanguage("EN")
                              .setSubject("Showing off our flattening skills")
                              .setTitle("Flattened XFA"));
  
          XFAFlattener xfaf = new XFAFlattener()
                  .setFlattenerProperties(flattenerProperties);
  
  
          xfaf.flatten(new FileInputStream("xfaform.pdf"), new FileOutputStream("flat.pdf"));
  }
  </code></pre>
  
  <p>and getting <code>java.lang.NoClassDefFoundError: org.mozilla.javascript.ScriptableObject</code>
  when trying to do 
  <code>XFAFlattener xfaf = new XFAFlattener();</code></p>
  
  <p>Not using Maven or POM. I have the following JARs in classpath:</p>
  
  <ul>
  <li>io-7.1.10.jar</li>
  <li>kernel-7.1.10.jar</li>
  <li>layout-7.1.10.jar</li>
  <li>itext-licensekey-3.0.6.jar</li>
  <li>pdfrender-1.0.0.jar</li>
  <li>pdfxfa-2.0.5.jar</li>
  </ul>
  
  <p>Am I missing something? </p>