This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

location of db.db. in the submission jar

 
Maja Vukovic
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I was wondering where should the db.db be located in the submission file, and also in general how are you guys accessing this file. For example, for the client I provide both filechooser and a textfield for entering the location of the data file, as for the server data file location should be provided as an argument.
Now, since I was planning to submit executable jars for both client and server, would I have to actually have db.db in those jars (meaning I would have to figure out how to read/write file from/to jar) or can I assume that the person who is assessing the application will chose a datafile (that is not in the jar).
It would be great if ppl who passed the SCJD explain how they packaged and accessed db.db file.
Thx
Maja
 
Aleksey Matiychenko
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you would extract db.db from the jar file.
MY instructions say that a location should be supplied in command line.
I would give the same command line to both server and client startup programs.
In the server mode you would just need to add host name and port parameters to your client start script

 
Rahul Mahindrakar
Ranch Hand
Posts: 1869
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think the db.db need not be in the jar file. Only the application classes and the images are to be in the jar file. Other than that your source and documentation has to be in a separate folder.
In this way the user can select a different xxx.db or pass the path and use this particular file passed at the command line.
 
Maja Vukovic
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aleksey & Rahul
thanks a lot, I'm just preparing to submit my project and had last minute doubts about some stuff
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic