错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099; nested exception is: java.net.BindException: Address already in use: JVM_BindDisconnected from server 端口被占用,进入windows命令,查看什么进程被占用了 netstat -aon|findstr 1099 显示. 然后关闭占用该端口的进…
RMI 是java语言的一个RPC框架,本文给出基础例子如下: 1.实现接口: public interface ICalc extends Remote { public int add(int param1, int param2) throws java.rmi.RemoteException; } 2.服务端实现该接口: public class CalcImpl extends UnicastRemoteObject implements ICalc { protected CalcI…