All elements of your submission must be packaged in a single JAR file. The JAR file must have the following layout and contents in its root:
The executable JAR containing the programs. This must be called runme.jar.
The original, unchanged database file that was supplied to you. Note that you must keep a copy of the original database file supplied to you, and this must be the file you submit. The marking process will expect the exact same data without any changes.
A directory called code, containing all the source code and related parts of your project. You must create subdirectories within this to reflect your package structure and distribute your source files within those directories.
A file called version.txt. This must contain pure ASCII (not a word processor format) indicating the exact version of JDK you used, and the host platform you worked on.
A directory called docs, containing the following items at the top level:
The mode flag must be either "server", indicating the server program must run, "alone", indicating standalone mode, or left out entirely, in which case the network client and gui must run.
Sounds good to me.
What I understood now, is "server" indicates starting the server. "alone" means it doesn't matter if server is on or not, but client should start in standalone mode. Where as no parameter expects that server is on and starts the client in network mode connecting to the server. If however in this mode, the server is not on, it should throw an error.
While using the assignment to learn tools like ant (and remote debugging and ...) is a great idea, I would still recommend doing it manually at least once. That way you know what the end result should look like. If you go straight to using ant and then end result doesnt work you wont know whether it was a problem with your ant script or a problem with your executable jar file concepts.
Regarding making an executable jar file, I think, I would use ant to do the job as it will be a new learning for me.
Originally posted by Andrew Monkhouse:
Welcome to JavaRanch and this forum.
... *snap* ...
So, if the user wants to work in network mode he will need to open the client via a separate command line?
Well you might be able to do this, but what would be the point? If you did this you would only have one client connected, which defeats the purpose of having a client-server system.
That appears to be. I was thinking there was a way for the RMIServer main() to call the client main() somehow.