Hi, do I have to allow the grader to change the java.rmi.codebase parameter and can i assume that he will install my project in the root directory? also, which parameters are required to be inputted by the grader? My instructions listed about 5 like DNS name of server, codebase, port of server? Which ones of these do I have to handle?
Actually you don't "have" to handle any of those. But of course it would be nice to provide the ip address of the server if in remote mode. You cannot guarantee that the assessor will "Unzip" your submission ino the root directory. However, your code should be able to run in whatever directory the assessor puts it in. If you used System.getProperty(user.dir). That is all you really need to handle that. As far as codebase parameter, that is a valid command line entry, and if your code needs it then you need to explain to the assessor how to type that into the command line. I didn't need this as I had executable jars so the classes knew where to look. Mark
Originally posted by Alex Gregory: Mark, if he could unpack it anywhere, can I assume that he will put it in the right classpath because how else can I determine what classpath he needs?
No, you can't assume anything. But if you have an executable jar file, then you won't have to worry about classpath, well except for the JDK, and that you can assume he has correct. Here's part of my readme.txt to help