aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Submitting the Project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Submitting the Project" Watch "Submitting the Project" New topic
Author

Submitting the Project

Alex Gregory
Ranch Hand

Joined: Jun 15, 2002
Posts: 46
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?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Alex Gregory
Ranch Hand

Joined: Jun 15, 2002
Posts: 46
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?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Hope that helps
Mark
 
Consider Paul's rocket mass heater.
 
subject: Submitting the Project
 
Similar Threads
Automatic Failure.
Logging entry & exit for methods that throw exceptions
start client and server
Thoughts about client/server startup
Just got my result 145/155