Issue with Importing Com. Sun. Jersey. Api. Client. Clientresponse;

I have a basic java project wherein I have imported the jersey-client-1.19.jar externally in my java build (using eclipse). I am trying to write a basic jersey client to make a RESTful call to a web service. As soon as I try to import the ClientResponse class, eclipse complains about -

the type javax.ws.rs.ext.runtimedelegate$headerdelegate cannot be resolved. It is indirectly referenced from required .class files.

Eclipse auto correct takes me to my build paths. But I have had no luck fixing this. Googled for this but did not find anything.

I am missing something basic here. Any help is appreciated.

1 Answer

Never mind. Fixed it by trying to import jars from jersey library. The jsr311-api-1.1.1.jar import fixed the issue.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest