Your choice of RMI or serialized objects will not affect your grade, but no other approach is acceptable. In either case, the program must allow the user to specify the location of the database, and it must also accept an indication that a local database is to be used, in which case, the networking must be bypassed entirely. No authentication is required for database access.
All the above text was in the URLyBirds assignment. Does this mean that the user can enter the database location in the command line or it must be done in the GUI. The reason i ask is because further down in the instructions the folowing was said :
When you submit your assignment, each part (client and server) must be executable using a command of this exact form:
java -jar <path_and_filename> [<mode>]
Your programs must not require use of command line arguments other than the single mode flag, which must be supported. Your programs must not require use of command line property specifications. 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.
Does this mean that the database location can be in an xml file called cuncertify.properties and this can be edited using the gui.
Thanks in advance for your help with the matter.
According to the second set of instructions, you cannot specify the location of the database file on the command line.
Your other solution is correct though - the database location can be stored in the properties file (XML format is not a requirement though), and would be modified through the GUI - I would recommend a JFileChooser which is pre-populated with the entry from the properties file (if set).