title: java.lang.ClassCastException: org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext
body: <p>I'm trying to create SpellChecker program through api, here is my code</p>
  
  <p><strong>SpellCheck.java</strong></p>
  
  <pre><code>package com.spell;
  
  import org.xeustechnologies.googleapi.spelling.SpellChecker;
  import org.xeustechnologies.googleapi.spelling.SpellCorrection;
  import org.xeustechnologies.googleapi.spelling.SpellResponse;
  
  public class SpellCheck {
  
      public static void main(String[] args)
      {
  
          SpellChecker checker = new SpellChecker();
  
          SpellResponse spellResponse = checker.check( "helloo worlrd" );
  
          for( SpellCorrection sc : spellResponse.getCorrections() ) 
              System.out.println( sc.getValue() );
  
      }
  }
  </code></pre>
  
  <p><strong>Dependencies</strong></p>
  
  <p><a href="https://i.stack.imgur.com/lK8KF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lK8KF.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/DAfgN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DAfgN.png" alt="enter image description here"></a></p>
  
  <p><strong>Error I got after running it:</strong></p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.ExceptionInInitializerError
            at com.spell.SpellCheck.main(SpellCheck.java:12)
        Caused by: java.lang.ClassCastException: org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext
            at org.apache.log4j.Logger$PrivateManager.getContext(Logger.java:59)
            at org.apache.log4j.Logger.getLogger(Logger.java:41)
            at org.xeustechnologies.googleapi.spelling.SpellChecker.(SpellChecker.java:50)
            ... 1 more</p>
  </blockquote>