无法在Java中启动GeoIPService类型

无法在Java中启动GeoIPService类型,java,eclipse,soap,Java,Eclipse,Soap,新肥皂。在WindowsVista下使用EclipseMars和JDK1.8 我正在使用 我得到以下错误:无法启动类型GeoIPService。知道为什么吗 import java.rmi.RemoteException; import javax.xml.rpc.ServiceException; import net.webservicex.www.GeoIP; import net.webservicex.www.GeoIPService; import net.webservicex.w

新肥皂。在WindowsVista下使用EclipseMars和JDK1.8

我正在使用

我得到以下错误:无法启动类型GeoIPService。知道为什么吗

import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import net.webservicex.www.GeoIP;
import net.webservicex.www.GeoIPService;
import net.webservicex.www.GeoIPServiceSoap;

public class IPLocationFinder {
public static void main(String[] args) throws ServiceException, RemoteException {
    if (args.length != 1) {
        System.out.println("You need to pass in one IP address");
    }
    else
    {
        String ipAddress = args[0];

        GeoIPService geoIPService = new GeoIPService(); //<== Cannot initiate the type GeoIPService
        GeoIPServiceSoap geoIPServiceSoap = geoIPService.getGeoIPServiceSoap();
        GeoIP geoIP = geoIPServiceSoap.getGeoIP(ipAddress);
        System.out.println( geoIP.getCountryName() );
    }
}}
import java.rmi.RemoteException;
导入javax.xml.rpc.ServiceException;
导入net.webservicex.www.GeoIP;
导入net.webservicex.www.GeoIPService;
导入net.webservicex.www.GeoIPServiceSoap;
公共类IPLocationFinder{
公共静态void main(字符串[]args)引发ServiceException、RemoteException{
如果(args.length!=1){
System.out.println(“您需要传入一个IP地址”);
}
其他的
{
字符串ipAddress=args[0];
GeoIPService GeoIPService=新的GeoIPService()//