Exception in thread "main" java.lang.NoClassDefFoundError: net.minidev.json.writer.JsonReaderI

3,652 views
Skip to first unread message

Ratan Anand

unread,
Apr 5, 2016, 8:02:02 AM4/5/16
to JsonPath
Hi All,
             I am getting below error when i compile my code using json-path-2.2.0.jar , i think i am missing dependency jars.

Exception in thread "main" java.lang.NoClassDefFoundError: net.minidev.json.writer.JsonReaderI
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:85)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:162)

Could anyone help me with the link to dependency jars ?

Code snippet,
String jsonBody = "{\"events\": [{\"eventID\": \"12343124\",\"eventTitle\": \"Pay Statement Notification\"}]}";
Object document = Configuration.defaultConfiguration().jsonProvider().parse(jsonBody);

 String author0 = JsonPath.read(jsonBody, "$.events[0].eventID");
 String author1 = JsonPath.read(document, "$.events[0].eventTitle");
 System.out.println(author0);
 System.out.println(author1);


Thanks
Anand Ratan

kalle stenflo

unread,
Apr 5, 2016, 9:36:45 AM4/5/16
to JsonPath

--
You received this message because you are subscribed to the Google Groups "JsonPath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsonpath+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages