Jersey Core Error java.lang.NoClassDefFoundError | Community
Skip to main content
Level 2
February 1, 2022

Jersey Core Error java.lang.NoClassDefFoundError

  • February 1, 2022
  • 0 replies
  • 1081 views

Hey guys, 

 

I'm doing some API work w/ Jersey 1.9.4 ... it seems to compile correctly & work up until this line of the activate function in my ApiClientImpl.java

Client client = Client.create(conf);


where I get the error java.lang.NoClassDefFoundError: Could not initialize class com.sun.jersey.core.header.MediaTypes . I think it may have something to do with other dependencies? The jersey-core bundle is loading correctly. It's even weirder b/c only a few members of my team (and we all ostensibly have the same code) get this error, so I'm wondering if it might be environment specific

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.