Issue with importing com.sun.jersey.api.client.ClientResponse;

微笑、不失礼 提交于 2019-12-08 03:02:31

问题


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:


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



来源:https://stackoverflow.com/questions/34958710/issue-with-importing-com-sun-jersey-api-client-clientresponse

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!