%classpath add mvn group name version

In [ ]:
%classpath add mvn com.fasterxml.jackson.core jackson-databind 2.6.5

Gson exmaple

In [ ]:
import com.google.gson.Gson;
In [ ]:
%classpath add mvn com.google.code.gson gson 2.2.4
In [ ]:
import com.google.gson.Gson;
In [ ]:
%classpath add mvn com.google.code.gson gson 2.2.4

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

Gson gson = new GsonBuilder().create();
gson.toJson("Hello", System.out);

Error handling

In [ ]:
%classpath add mvn com.fasterxml.jackson.XXXXXXX jackson-databind 2.6.5
In [ ]:
%classpath add mvn com.fasterxml.jackson.XXXXXXX jackson-databind
In [ ]:
%classpath add mvn goog-jar goog-jar 1.0.0
In [ ]: