Menu
I have an applet which is a client to a locally runnig RMI server.
public void init()
{
try
{
Registry registry =
LocateRegistry.getRegistry(RMIInterface.REGISTRY_PORT);
remoteReference =
(RMIInterface) registry.lookup(RMIInterface.REGISTRY_NAME);
String ret=remoteReference.getMessage();
System.out.println(ret);
}
catch (Exception e)
{
throw new RuntimeException(e);
}
}
When the machine is on the network,I get a java.security.AccessControlException.
However,when the machine is disconnected from the network it works fine.
What is wrong,and how does it get resolved?