I'm trying to make Restlet work with Jackson with the following Java code:
public class HelloWorldResource extends ServerResource{
@Get("json")
public Todo represent()
{
Todo t = new Todo();
t.setId("1");
t.setDescription("hello");
t.setSummary("world");
return t;
}
//...
}
When I run the program I get an error:
java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonFactory
These are the jars I'm using:
Why can't it find the dependencies?
EDIT:
I solved the problem by adding this jar to the classpath.
I'm still interested to know if there are some mistakes/redundancies in the jars I'm adding.