posted 17 years ago
Hi Zhaozhe,
In answer to your original question, if I understand correctly, what you want to do is start the RMI registry using a user-defined port number?
If this is the case I would recommend displaying a GUI to the user (created and displayed by an object i.e. ApplicationRunner.java with a main method that is not the server and does not require RMI to be running) and then ask for the appropriate information (url, port), and only then do you need to start the registry and instantiate your server object using the GUI object.
Best wishes,
Daniel
SCJP 1.4,<br />SCJD (URLyBird 1.2.1, JDK 5.0)