anyone who can help me with this code....see if there is any problem FYI i'm just a beginner in
java application
the rmi server code is running well but i can't really see the problem on how to solve the rmi client code(below);
import java.rmi.*;
import java.rmi.registry.*;
//import java.net.*;
public class RmiClient{
@SuppressWarnings("empty-statement")
static public void main(
String args[]){
ReceiveMessageInterface RmiServer = null;
Registry registry;
String serverAddress=args[0];
String serverPort=args[1];
String text=args[2];
System.out.println ("sending " + text + " to " +serverAddress + ":" + serverPort);
try{
registry=LocateRegistry.getRegistry (serverAddress,(new Integer(serverPort)).intValue());
RmiServer=(ReceiveMessageInterface)(registry.lookup("rmiServer"));
// call the remote method
/*RmiServer.ReceiveMessageInterface(text)*/;
}
catch(RemoteException e){
e.printStackTrace();
}
catch(NotBoundException e){
System.err.println(e);
}
}
}
please do help me ~~