Hi all,
I have problems interpreting the EXECUTION and PACKAGING Requirements.
Specifications says:
"When you submit your assignment, each part (client and server) must be executable using a command of this exact form:
java -jar <path_and_filename> [<mode>]
"
and then
"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.
"
If this is a CLIENT/SERVER application you are supposed to have to mains:
1/ To start the server.
2/ To start the client.
How am I suppose to run two mains from one jar only? As far as I know in a Manifest file you can only specify ONE MAIN class right?
I do have three configuration guis:
1/ One to set up server configurations(db location, host and port)
2/ Antoher one that looks exactly the same to set up client
configurations when running in network mode.
3/ Another one to run client when in ALONE mode.
I could very well have this three little guis being populated off one main based on the command line argument being passed (no problem here).
My concern basically arises because I do not know how they are going to
test the exam. If they take out the Server code and put it on to another machine then they will not be able to start the server because the logic that populates the server was in the client side machine SINCE THE SUNCERTIFY.PROPERTIES IS ALSO ON THE CURRENT DIRECTORY.
My other concern is the purpose of the suncertify.properties file. The assignment says that it must be located in the current working directory.
What does that mean ? Current working directory for the server code in the other machine? Or current working directory for the client machine?
The way I have it working now is that I have all my application running of one machine and both client and server read and write their configurations to the file in the current working directory(no problem here).
But what happens if they move part of my code around to really make it CLIENT/SERVER?? How is the Client going to read the properties that the server set up in the current working directory of the machine that server code is running from?
I have done a lot of work on this certification and I would not like to get an automatic failure because the requirements are not really clear. Oh well, maybe it is my ESL.
Please Andrew and others help.
Thanks,
-Dario Pardo.