Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Starting local server problem -Rmi

 
Author
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
 
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic