• Post Reply Bookmark Topic Watch Topic
  • New Topic

Starting local server problem -Rmi

 
James Chegwidden
Author
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!