当前位置: 技术问答>java相关
急 java.rmi.registry.LocateRegistry;怎么了?
来源: 互联网 发布时间:2015-08-28
本文导语: Registry reg = null; reg = LocateRegistry.createRegistry(port); 错误提示:D:javarmiFlip.java:33: unreported exception java.rmi.RemoteException; must be caught or declared to be thrown reg = LocateRegistry.createRegistry(port); 怎么...
Registry reg = null;
reg = LocateRegistry.createRegistry(port);
错误提示:D:javarmiFlip.java:33: unreported exception java.rmi.RemoteException; must be caught or declared to be thrown
reg = LocateRegistry.createRegistry(port);
怎么会事啊?
reg = LocateRegistry.createRegistry(port);
错误提示:D:javarmiFlip.java:33: unreported exception java.rmi.RemoteException; must be caught or declared to be thrown
reg = LocateRegistry.createRegistry(port);
怎么会事啊?
|
加try{
reg = LocateRegistry.createRegistry(port);
}catch(RemoteException ee){}
这是很简单的一个错误啊,怎么也要来问?
reg = LocateRegistry.createRegistry(port);
}catch(RemoteException ee){}
这是很简单的一个错误啊,怎么也要来问?
|
try
{ reg = LocateRegistry.createRegistry(port); }
catch(RemoteException e)
{}
{ reg = LocateRegistry.createRegistry(port); }
catch(RemoteException e)
{}