I\'ve participated in a few online programming contests and found the online judges used quite remarkable in functionality.
Coming to the point of the topic, my college
I am not sure what an online judge is, but I assume it is a piece of software to evaluate programs for correctness.
I would use some build, test and analysis libraries for this. Examples would be Ant, JUnit, and Checkstyle.
You would take the code provided by the participant, and drop it into a file. Use the build tool to compile it.
Then run some tests, that verify the correctness of the solution.
Finally run some code analysis utility to judge the quality of the code.
Of course you might want to shift the point values to your needs.