java.lang.NoClassDefFoundError:com.github.fge.jackson.JsonLoader [英] java.lang.NoClassDefFoundError: com.github.fge.jackson.JsonLoader
本文介绍了java.lang.NoClassDefFoundError:com.github.fge.jackson.JsonLoader的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用github项目' json-schema-validator 并出现错误.
I am using github project 'json-schema-validator' and getting below error.
java.lang.NoClassDefFoundError: com.github.fge.jackson.JsonLoader
at ****************.getJsonNode(Service.java:63)
at ****************.getSchemaNode(Service.java:69)
at ****************.isJsonValid(Service.java:93)
at ****************.requestToSectionJSON(Controller.java:477)
我添加了与github项目相同的jar文件. 但我不知道为什么它会不断出现此lib错误.
I added jar files same as the github project.. but I don't know why it keeps getting this lib error.
(忽略***部分.它只是我的包裹名称)
(ignore *** part. it just my package name)
- jackson-coreutils 1.9
- json-schema-core 1.2.10
- jackson-core 2.9.6
- jackson-databind 2.9.6
- jackson-annotation 2.9.6
- msg-simple 1.1
- btf 1.2
- GUABA 16.0.1
- json-schema-validator 2.2.10
- joda-time 2.9.7
- uri-template 0.9
- RHINO 1.7.7.1
- libphonenumber 8.0.0
- jsr305 3.0.1
- 激活1.1.1
- mailapi 1.4.3
- 简单运行5.0.3
- jackson-coreutils 1.9
- json-schema-core 1.2.10
- jackson-core 2.9.6
- jackson-databind 2.9.6
- jackson-annotation 2.9.6
- msg-simple 1.1
- btf 1.2
- GUABA 16.0.1
- json-schema-validator 2.2.10
- joda-time 2.9.7
- uri-template 0.9
- RHINO 1.7.7.1
- libphonenumber 8.0.0
- jsr305 3.0.1
- activation 1.1.1
- mailapi 1.4.3
- jotp simple 5.0.3
推荐答案
在大多数情况下,如果在运行时使用的jar版本不正确,就会发生此错误.确保使用的是jackson-coreutils.jar
的正确版本(编译代码时使用的相同版本).
Most of the times this error happens if you have wrong version of jars at runtime. Make sure you are using proper version of jackson-coreutils.jar
(same version you used while compiling the code).
这篇关于java.lang.NoClassDefFoundError:com.github.fge.jackson.JsonLoader的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文