I use rmi in Java. however there is a ExportException "remote object implements illegal remote interface".
Here is my code, May someone help me?
public interface RemotePeer extends Remote {
public abstract void displayInf(String inf);
public abstract void exit();
public abstract boolean isActive();
}
public class Peer implements RemotePeer{
public Peer(){}
....
public static void main(String[] args) {
Peer p=new Peer()
RemotePeer remoteP=(RemotePeer) UnicastRemoteObject.exportObject(p, 0);
Registry registry = LocateRegistry.getRegistry();
}
}