import javax.jws.WebMethod时出错

nanjinglxj nanjinglxj 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
困扰好久了。再次请教:
1.在java类文件中引用:import javax.jws.WebService;时
报错: The import javax.jws cannot be resolved

2.@WebService(serviceName = "ProgramInterface", targetNamespace = "http://WEBMEANS/WebServices/", endpointInterface = "com.service.ProgramInterfaceSoap");时
报错:WebService cannot be resolved to a type

环境:
我用的是jdk1.5.0_03,eclipse

1.在eclipse -->window -->preferences-->编译路径中已经加入了。jdk里的rt.jar
2.在工程 -->properties -->编译路径中已经加入了jre system library.


...全文

相关推荐

评论 5
收藏 已收藏
分享
返回顶部
nanjinglxj
Java EE 67,535 成员 225,843 内容