Getting exception java.lang.NoClassDefFoundError while using json-schema-validator-2.2.6 -
i trying use json-schema
validator on code given in this link using eclipse..
there main class reads 2 .json
file(schema , json data) if (validationutils.isjsonvalid(schemafile, jsonfile))
used validate them validationutils
class takes schema file , json file , validates it..
but getting following errors.. , donno how fix it..plz help?
exception in thread "main" java.lang.noclassdeffounderror: com/github/fge/msgsimple/bundle/propertiesbundle @ com.github.fge.jackson.jsonnodereader.(jsonnodereader.java:66) @ com.github.fge.jackson.jsonloader.(jsonloader.java:50) @ com.wilddiary.json.validationutils.getjsonnode(validationutils.java:30) @ com.wilddiary.json.validationutils.getschemanode(validationutils.java:55) @ com.wilddiary.json.validationutils.isjsonvalid(validationutils.java:99) @ com.wilddiary.json.main.main(main.java:18) caused by: java.lang.classnotfoundexception: com.github.fge.msgsimple.bundle.propertiesbundle @ java.net.urlclassloader$1.run(unknown source) @ java.net.urlclassloader$1.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ sun.misc.launcher$appclassloader.loadclass(unknown source) @ java.lang.classloader.loadclass(unknown source) ... 6 more
i'm using:
- json-schema-validator-2.2.6
- json-schema-core-1.2.5
- jackson coreutils 1.8
- jackson databind 2.7.2
- jackson annotations 2.7.2
- com.fasterxml.jackson.core.jar
the exception implies class com.github.fge.msgsimple.bundle.propertiesbundle
not present on run-time class-path. fix problem should download msg-simple-0.9.jar (http://mvnrepository.com/artifact/com.github.fge/msg-simple/0.9) , put class-path.
Comments
Post a Comment