title: Jackson cannot access com.fasterxml.jackson.core.ObjectCodec
body: <p>This question is a follow up to <a href="https://stackoverflow.com/questions/31318636/adding-a-jar-file-to-classpath-through-maven">this one</a>. I can't seem to be able to access the jackson library in the following code:</p>
  
  <pre><code>import com.fasterxml.jackson.databind.DeserializationFeature;
  import com.fasterxml.jackson.databind.ObjectMapper;
  import com.fasterxml.jackson.databind.ObjectReader;
  import com.fasterxml.jackson.databind.ObjectWriter;
  import java.io.IOException;
  import java.util.ArrayList;
  import java.util.List;
  
  public class ServerConfiguration {
      public String info = null;
      public String idlURL = null;
      public String idlContents = null;
      public List&lt;ServerInfo&gt; servers = new ArrayList&lt;&gt;();
  
      public final void clear() {
          info = null;
          idlURL = null;
          idlContents = null;
          if (servers != null)
              servers.clear();
      }
  
      private final static ObjectReader jsonReader;
      private final static ObjectWriter jsonWriter;
  
      static {
          ObjectMapper mapper = new ObjectMapper();
          mapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true); // &lt;== Error:(52, 15) java: cannot access com.fasterxml.jackson.core.JsonGenerator class file for com.fasterxml.jackson.core.JsonGenerator not found
          //mapper.configure(SerializationFeature.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED, true);
          jsonWriter = mapper.writer();
          jsonReader = mapper.reader(ServerConfiguration.class);
      }
  
      public static ServerConfiguration fromJson(String json) throws IOException {
          return jsonReader.&lt;ServerConfiguration&gt;readValue(json); // &lt;== Error:(59, 26) java: cannot access com.fasterxml.jackson.core.JsonProcessingException class file for com.fasterxml.jackson.core.JsonProcessingException not found
      }
  
      public String toJson() throws IOException {
          return jsonWriter.writeValueAsString(this);
      }
  
  }
  </code></pre>
  
  <p>eventhough the jar files are in the classpath(autocomplete shows the method declaration in Intellij). </p>
  
  <p>What am I missing?</p>