title: Java class not found in Jackson
body: <p>I'm new to Java and have a program that's throwing the following error:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/jackson/map/ObjectMapper
      at ExtractCustomerIds.main(ExtractCustomerIds.java:21)
  Caused by: java.lang.ClassNotFoundException: org.codehaus.jackson.map.ObjectMapper
      at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-internal/BuiltinClassLoader.java:366)
      at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-internal/ClassLoaders.java:184)
      at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419)
      ... 1 more
  </code></pre>
  
  <p>I know the problem has to be with paths, classpath or jar name, but I can't figure out as of now.</p>
  
  <p>My folder structure is:</p>
  
  <pre><code>.
   - get_customer_ids
     - ExtractCustomerIds.java
   - libs
     - jackson-all-1.9.11.jar
  </code></pre>
  
  <p>So when I'm inside the <code>get_customer_ids</code> I give the following command:</p>
  
  <p><code>get_customer_ids$ javac -cp ../libs/* ExtractCustomerIds.java</code> and this causes the error above.</p>
  
  <p>I thought I was setting the classpath correctly, but it's still not working. What's missing? </p>