Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonMerge #5

Open
lij55 opened this issue Feb 22, 2020 · 1 comment

Comments

@lij55
Copy link

lij55 commented Feb 22, 2020

I get following while running it.

Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonMerge at com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.<clinit>(JacksonAnnotationIntrospector.java:50) at com.fasterxml.jackson.databind.ObjectMapper.<clinit>(ObjectMapper.java:291) at com.sgmarghade.App.main(App.java:199) Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.annotation.JsonMerge at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 3 more

I build it on mac and java version is below:
java -version java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

@tkhasimbasha
Copy link

tkhasimbasha commented Aug 25, 2022

This is an old issue.. however i am pasting the solution as it is still relevant w.r.t to existing pom.xml that is the code. I have solved this by updating the jars annotation jar to >2.9 as method JsonMerge is introduced in 2.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants