• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How friendly are they when running my submission?

 
Petr Blahos
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
(from instructions:
Portions of your submission will be analyzed by software; where a specific spelling or structure is required, even a slight deviation could result in automatic failure.)
I have a sort of a worry about the Data class. Well, sun requires me
to implement the Data class, but it does not specify how the class
should be instantiated. How are they going to run any automatic
tests if they don't know how to create the Data object?!? The
instruction don't tell anything specific about the subject
and that worries me. Any opinions?
Another slightly related thing: how do you specify the data file
for the server? I am implementing a piece of UI for that purpose
but a server running swing?!?
I am also a worried about RMI. As far as I understand, rmiregistry
must have classpath set to my project in order to register my remote
objects. Does anybody know what their setup is? Will they let me
start rmiregistry from my code? Or will they run it with the classpath
set or am I missing something?
Thanks very much for any help with these issues.
Best regards,
Petr
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Petr,
Welcome to the ranch and this forum!
(from instructions:
Portions of your submission will be analyzed by software; where a specific spelling or structure is required, even a slight deviation could result in automatic failure.)
I have a sort of a worry about the Data class. Well, sun requires me
to implement the Data class, but it does not specify how the class
should be instantiated. How are they going to run any automatic
tests if they don't know how to create the Data object?!? The
instruction don't tell anything specific about the subject
and that worries me. Any opinions?

You don't need to worry about that IMO, as far as your method signatures are OK with the provided interface.
Instructions don't mention anything about constructors anyway.
Another slightly related thing: how do you specify the data file
for the server? I am implementing a piece of UI for that purpose
but a server running swing?!?

I think you have no other choice:
Instructions:
All configuration must be done via a GUI, and must be persistent between runs of the program. Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory.

I let the RMI question for an RMI specialist...
Regards,
Phil.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11914
209
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Petr,
Welcome to JavaRanch and this forum.
I am also a worried about RMI. As far as I understand, rmiregistry
must have classpath set to my project in order to register my remote
objects. Does anybody know what their setup is? Will they let me
start rmiregistry from my code? Or will they run it with the classpath
set or am I missing something?

Yes, you are allowed to start the registry from your code, and this is the way that most people write their server for this assignment.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic