• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Remote Method Invocation (RMI)

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Sorry if the question is too simple, but it is giving me a headache...
The problem is that I have an example of a Java RMI program, and I need to run it. But do not know how to do so.
Could someone please describe to me, in simple words, how to run the program. I know that I first have to start the RMI registry, then the server, and then the client I think.
But how do I do this???

Thank you
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Alireza Bahmanpour wrote:I know that I first have to start the RMI registry, then the server, and then the client I think.
But how do I do this???



1 - run the rmiregistry (for Windows) command from the command prompt
2 - run your server program (java -cp classpath NameOfyourServerProgram)
3 - run the client on another machine or in the same machine (same as above #2)

You will have a complete example from start to end at here. BTW we have a separate forum for these kind of things called Distributed-Java
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic