Author
Starting local server problem -Rmi
James Chegwidden
Author
Ranch Hand
Joined: Oct 06, 2002
Posts: 201
posted Jan 08, 2005 20:23:00
0
Trying to run this code: AccountClient.java AccountServer.java Here is the command output all files on A drive. I want this program to run on the localhost to test A:\>javac RemoteAccount.java A:\>javac AccountImpl.java A:\>javac AccountServer.java A:\>javac AccountClient.java A:\>rmic AccountImpl A:\>start rmiregisty The system cannot find the file rmiregisty. A:\>start rmiregistry A:\>java AccountServer access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve) A:\>java AccountServer access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve) A:\>java AccountClient 127.0.0.1 1000 900 access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve) A:\>start java AccountServer localhost A:\>start java -Djava.security.policy=a:\policy AccountServer localhost A:\>java -Djava.rmi.server.codebase=file:/..\..\ - Djava.security.policy=RMISecu rity.policy AccountServer Unrecognized option: - Could not create the Java virtual machine. A:\>start java -Djava.security.policy=a:\policy AccountServer localhos\t\ A:\>java -Djava.rmi.server.codebase=file:/..\..\ -Djava.security.policy=RMISecur ity.policy AccountServer access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve) A:\> Any help to get the Server to run correctly on local machine... Thanks Jc
Mr. C<br /> <br />Author and Instructor<br />My book:<br /><a href="http://www.aw-bc.com/catalog/academic/product/0,1144,1576761614,00.html" target="_blank" rel="nofollow">http://www.aw-bc.com/catalog/academic/product/0,1144,1576761614,00.html</a>
subject: Starting local server problem -Rmi