title: java.lang.NoClassDefFoundError: freemarker/template/TemplateModelException
body: <p>Tried to create advanced <code>HTML</code> reports using <code>extentReports</code> jar, but it is throwing below error.</p>
  
  <blockquote>
    <p>java.lang.NoClassDefFoundError:
    freemarker/template/TemplateModelException</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>public class XtentReport { 
     WebDriver driver; 
     ExtentReports report; 
     ExtentTest logger; 
  
  @Test public void verifyXReport() { 
     report = new ExtentReports("D:\\Selenium_Reports\\AdvanceReport.html"); 
     logger=report.startTest("StartingTC"); driver= new FirefoxDriver();
     driver.manage().window().maximize(); logger.log(LogStatus.INFO,"Browser is up and running"); 
     driver.get("google.com"); 
     logger.log(LogStatus.PASS,"Test completed"); report.endTest(logger); 
     report.flush(); 
     } 
   } 
  </code></pre>