Hi Robert,
I think you are trying to cater for a non-existant problem. Consider the following scenario
Machine A has databaseMachine A has runme.jarMachine B has runme.jar Machine B does not have direct access to the database (that is, there are no drive mappings (for Microsoft) or remote network mounts (for Unix and unix like systems).
In that situation, we could have:
Machine A running java -jar runme.jar alone (to run as a standalone client Or:
Machine A running java -jar runme.jar server in one JVM (to run as a server). In this case we have two other options:Machine A running java -jar runme.jar in another JVM running as a networked client connecting to the server on Machine AMachine B running java -jar runme.jar running as a networked client connecting to the server on Machine A However we cannot have Machine B running
java -jar runme.jar server since the database is not local. Trying to get this scenario to work is (in my opinion) beyond the scope of the assignment.
Regards, Andrew
[ July 27, 2005: Message edited by: Andrew Monkhouse ]