This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
My system is Microsoft XP Professional. I am trying to run three different samples of RMI program (One of them is from Sun). When I tried to run the RMI Server, all of them gave me the same error message.
1. I followed the instructions to get all the files ready to run. 2. Start the HTTP Server (ClassFileServer, which I downloaded from SUN). 3. Start the rmiregistry on port 1099. 4. Start the RMI Server. Here I always got this error message: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve) I tried many different suggestions to fix policy file, but no use. Through reading some posted messages about this problem, I guess that I don't have authorization to talk to rmiregistry (which runs on port 1099). My system is XP professional. Any help is appreciated. Thanks.
Hi, You do not have the permissions for your actions( defined by a policy file). Start the "policytool" (simple by typing policytool in a dos box) Assign "AllPermissions" to the policyfile that you have to store <user_home>/.java.policy This should work.
Marco Barenkamp<br />_ _ _ _ _ ________________________ _ _ _ _ _ <br />L M I N T E R N E T S E R V I C E S AG<br /> <br />Head of Software Development<br /> <br /> <br />BEA Certified Enterprise Developer<br />Sun Certified Programmer for the Java2 Platform<br />Sun Certified Web Component Developer for the Java2 Platform<br />Sun Certified Developer for the Java 2 Platform <br />Sun Certified Business Component Developer for the Java 2 Platform <br />Sun Certified Enterprise Architect for the Java 2 Platform Enterprise Edition<br /> <br />LMIS AG