• 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

location of db.db. in the submission jar

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic