title: Fix java.lang.ClassNotFoundException: com.fasterxml.jackson.annotation.JsonAutoDetect
body: <p>Getting following exception while running the program.</p>
  
  <pre><code> Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonAutoDetect
      at com.fasterxml.jackson.databind.introspect.VisibilityChecker$Std.&lt;clinit&gt;(VisibilityChecker.java:170)
      at com.fasterxml.jackson.databind.ObjectMapper.&lt;clinit&gt;(ObjectMapper.java:261)
      at neustar.mngr.EMRService.getEMRConfig(EMRService.java:40)
      at neustar.mngr.EMRService.getEMR(EMRService.java:22)
      at neustar.helper.EmrLaunchMain.main(EmrLaunchMain.java:16)
  Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.annotation.JsonAutoDetect
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 5 more
  </code></pre>
  
  <p>The pom entry is given as below.</p>
  
  <pre><code>    &lt;dependencyManagement&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
              &lt;artifactId&gt;aws-java-sdk-bom&lt;/artifactId&gt;
              &lt;version&gt;1.11.327&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
              &lt;version&gt;2.1.2&lt;/version&gt;
  
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-core&lt;/artifactId&gt;
              &lt;version&gt;2.1.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-annotations&lt;/artifactId&gt;
              &lt;version&gt;2.1.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
              &lt;artifactId&gt;aws-java-sdk&lt;/artifactId&gt;
              &lt;version&gt;1.11.515&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  </code></pre>
  
  <p>The exception is thrown while creating object of Mapper class:</p>
  
  <pre><code>ObjectMapper mapper = new ObjectMapper();
  </code></pre>
  
  <p>I am not getting any compilation error. At runtime the exception is coming. Need guidance to fix the issue.
  Tried changing the versions of jackson, but it did not help</p>