Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mark: Command lines

 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
I noticed on one of your posts, that your command line to start the server only set the RMI security policy and your client in local mode had no args. Did you just start db.db in your bootstrap code or prompt the user for a database location from the GUI's?
Thanks in advance,
Michael Morris
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My db.db file resides in the same directory as the jar files. In my code I use two lines to pass the location of the db file.

This is in the DataAccessLocal class and also in my ConnectionFactoryEngine class.
I don't let the user tell the app where the db.db file is.
In my readme file I specifically state that the db.db file has to reside in the jar directory.
Mark
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark.

Michael Morris
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!