Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How examer starts rmigistery with runme.jar

 
Tom Yin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After I review the requirement of my assignment again, I found the following description about the application running:
"... "server", indicate the server program must run, "alone", indicating standalone mode. or left out entirely, in which case the network client and gui must run."
My understanding on that is:
1. java -jar runme.jar alone --> run application locally
2. java -jar runme.jar server --> start the RMI server
3. java -jar runme.jar --> start the GUI and RMI client
Is my understanding correct? if so, another question is raising, how examer start rmiregistry with the runme.jar? From the reference I found, we have to extract the runme.jar, change to the classes directory, then start rmiregistry manually, I am guessing that might be too many steps to the examer.
What is option?
Thanks
Tom
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tom
Take a look at the java.rmi.registry.LocateRegistry class.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic