-1
我有一個錯誤在編譯如下代碼:我想這有一個具有String
沒有構造爲XmlRpcClient
XmlRpcClient着分配URL地址
import java.util.*;
import org.apache.xmlrpc.client.*;
import org.apache.xmlrpc.common.*;
import org.apache.xmlrpc.*;
public class pms {
public static void main (String [] args) {
String UserName = "123";
String Password = "123";
String pKey = "123";
XmlRpcClient server = new XmlRpcClient("http://localhost/RPC2"); //("http://localhost/RPC2");
Vector params = new Vector();
try {
params.addElement(new Integer(17));
params.addElement(new Integer(13));
Object result = server.execute("acquire_token",params);
int sum = ((Integer) result).intValue();
System.out.println("The sum is: "+ sum);
} catch (Exception exception) {
System.err.println("JavaClient: " + exception);
}
System.out.println("Hello World");
}
}
能否請你在職位說明中添加錯誤堆棧跟蹤? – tmarwen