Spark8006 Spark8006 - 3 months ago 51
reST (reStructuredText) Question

org.glassfish.jersey.internal.RuntimeDelegateImpl NOT FOUND

I am using jersey for my project and tring to parse a URI from a string.


The code is simple, but I get a error below

java.lang.ClassNotFoundException: org.glassfish.jersey.internal.RuntimeDelegateImpl

It seems the program can not find the delegate. I already imported
and have
jersey-common 2.0
that should contain the delegate in my build path. But I still get this error.

Does someone know how to fix it? Thanks!


If you're using Maven, use the following dependency:


For Gradle, the following will work:

testCompile 'org.glassfish.jersey.core:jersey-common:2.22.2'