????Server????????????д??????????????RmiTestInterface???????jar???????client???????С?
???????з??????????????
????server is start
???????????????jar???????????д???client?????????

public static void main(String []args){
try {
Registry registry = LocateRegistry.getRegistry("localhost"??2001);
RmiTestInterface t= (RmiTestInterface) registry.lookup("test");
System.out.println("client:"+t.getTest());
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NotBoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
???????п????main????????????????
????Hello??Test