• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

running the application - B&S

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Question 1
==========
My assignment says that:

"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>]"

I'm not sure whether this means that the above command should individually execute either the client or the server (depending on <path_and_filename> , or whether it means that the above command should execute both? My guess is that it means both, because it doesn't really make sense to provide a [<mode>] parameter when running the server.


Question 2
==========
The assignment also says that:

"The program must allow the user to specify the location of the database"

As only the command-line parameter referred to above is allowed, I suppose they'll have to specify the location of the database via the GUI. The nicest way to do this would be by opening up the familiar dialog box used to select a file to open. However the database file could reside on a different machine to the client GUI, so I can't simply open a dialog allowing the user to choose a file on the local machine.

Although I could instead just provide a field where the user types in the path to the file on the server machine, this is not terribly user friendly.

Thanks in Advance,
Dan
 
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dan,

If you type "java -jar runme.jar alone", then the application will run in standalone mode. "java -jar runme.jar server" will start the server only. "java -jar runme.jar" will start the networked client only.

By the way, the questions you are positing in this forum are all good questions. However, I have noticed that most of them have been discussed here before. Try searching the forum for an answer to your question(s), and if you still have uncertainties, post again and other ranchers can help.

Also, I am not trying to be a jerk by suggesting you search the forum... Many times, there is more than one correct solution to the issues you are facing. Searching the forum gives you the opportunity to look at all the sides and then make an educated decision for yourself.
 
Dan Murphy
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply Paul ad your suggestion about searching the forum.
I'd be interested to hear if you have any thoughts about "Question 2" above. Is it sufficient to enable the user to supply a path to the location of the file on the server, or if not, how can they browse the file system on the server from the client?

Cheers,
Dan
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic