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.
The moose likes Distributed Java and the fly likes Starting local server problem -Rmi Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Starting local server problem -Rmi" Watch "Starting local server problem -Rmi" New topic
Author

Starting local server problem -Rmi

James Chegwidden
Author
Ranch Hand

Joined: Oct 06, 2002
Posts: 201
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>
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Starting local server problem -Rmi
 
Similar Threads
why this exception?
registry binding problem in RMI
exception in client side
runtime exception
RMI access denied client/server