导入com.sun.jersey.api.client.ClientResponse时出现问题; [英] Issue with importing com.sun.jersey.api.client.ClientResponse;
问题描述
我有一个基本的Java项目,其中在我的Java构建中(使用eclipse)从外部导入了jersey-client-1.19.jar.我正在尝试编写一个基本的jersey客户端,以对Web服务进行RESTful调用.一旦我尝试导入ClientResponse类,eclipse就会抱怨-
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 -
无法解析类型javax.ws.rs.ext.runtimedelegate $ headerdelegate.它是从所需的.class文件中间接引用的.
the type javax.ws.rs.ext.runtimedelegate$headerdelegate cannot be resolved. It is indirectly referenced from required .class files.
Eclipse自动更正将我带到我的构建路径.但是我没有运气解决这个问题.对此进行了Google搜索,但未找到任何内容.
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.
推荐答案
没关系.通过尝试从球衣库中导入罐子修复了该问题. jsr311-api-1.1.1.jar导入解决了该问题.
Never mind. Fixed it by trying to import jars from jersey library. The jsr311-api-1.1.1.jar import fixed the issue.
这篇关于导入com.sun.jersey.api.client.ClientResponse时出现问题;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!