posted 19 years ago
I am just starting the B&S assignment, so I still have a lot of questions about the requirements. Here is what I think is supposed to happen. You are supposed to have one jar file for all your code. It is supposed to include both the server code and the GUI (client) code. The manifest file indicates which class to start. So say your "main" class is "ExamProject". If you type:
java ExamProject server
then the main() method inside ExamProject is supposed to create all the objects that you need for the server. If you start it like this:
java ExamProject
then the main() method inside ExamProject is supposed to create JFrames and JPanels and all the other objects that you need for your GUI.
I noticed in the Max book that they show a java method which will start up the rmi registry. Hopefully, that would have no ill effect if it is already started, so why not include it in your server code?
Edit: actually you would use the name of your jar file, not ExamProject, but hopefully the idea is clear.
[ May 06, 2005: Message edited by: Lara McCarver ]