【发布时间】:2012-08-18 23:29:02
【问题描述】:
这有点奇怪。
使用最新的 Eclipse Juno 版本,我正在尝试连接到 .NET Web 服务。 通过内置向导,我已连接到 WSDL,它在我的项目中生成了一个包含 java 源文件的 java 包。
但是在其中一个中,我收到错误 java.rmi.Remote cannot be resolved to a type
示例: 向导为我生成了以下行:
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
//a bunch of code here...
return _stub;
}
每当我尝试import java.rmi.Remote; 时,都会收到以下错误:
The import java.rmi.Remote cannot be resolved
我使用的是 Java v1.6。
哦,我正在开发一个安卓应用。
【问题讨论】:
-
我不知道为什么我对这个投了反对票。如果我的问题不够清楚,请告诉我。
标签: java android eclipse rmi classnotfoundexception