1.LocalHost cannot be used for RMI, if you want to test RMI on a single machine, you have to specify the machine name.
2. The RMI mechanism will not operate unless your computer has an active TCP / IP connection. Even if all components are only communicating with this unit, it is no exception.
3. There are some plugins under ECLIPS, such as RMIPLUGIN, which can be easily developed in RMI. http://sourceforge.net/project/showfiles.php?group_id=163674
4.java.security.accessControlxception: Access Denied (java.net.socketpermission 111.111.111.11:7099 connection, resolve) This exception occurs because of the privilege problem, you can resolve below, in the LIB / Java.Policy below Java Home Add settings.
When you use Java2 and its successors, you have a securitymodel that provides stronger access control to system resourcessuch as files and sockets The Security Manager enforces therestrictions you impose in your security policy (defined inthe java.policy file) -. Disabling the security manager justmeans that you are turning off security checks so the errorsdon't show up anymore.In your case, I assume you have not set up a java policy fileto provide the appropriate access permissions for your system.Check outhttp: //java.sun. com / products / jdk / 1.2 / docs / guide / security / PolicyFiles.htmlhttp: //java.sun.com/products/jdk/1.2/docs/guide/security/permissions.htmlfor more information.For an immediate solution, try adding these lines to your java policy file permission java.net.SocketPermission "localhost: 1024-65535", "accept, connect, resolve, listen"; permission java.net.SocketPermission "*: 1024-65535", "connect, accept "resolve";
5. When executing RMICLIENT on other machines, you need OperateIMPL_STUB.CLASS, this and interfaces need to be placed in the Client end.
6. The generation of atstub class can be generated to other directories by specifying RMIC -D