Hi Prakash, I have thought about doing the same and setting codebase and security manager programatically, but I think I will handle command line options as well. So by default, my standalone client, networked client, and server will all work without any options being entered (even server and port are optional since they default to reasonable values), but if the examiner wants to be able to test with their own policy file, (or a system wide one) they can - they are not forced into using mine. Not saying you are wrong ... just that for the 15 minutes extra coding, it makes the program a bit more rounded. Regards, Andrew
That is fine Prakash. Whatever you chose will be fine. Actually in my submission, I had only one argument which was DNS or IP address of the server, so almost exactly like yours, just no port number in my submission. I took the default port.
Andrew, don't use any SecurityManagers or Codebase, it is not needed. You only need them when dynamic downloading of classes is being done through a web server, which the assessors do not have. Mark