*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes location of db.db. in the submission jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "location of db.db. in the submission jar" Watch "location of db.db. in the submission jar" New topic
Author

location of db.db. in the submission jar

Maja Vukovic
Greenhorn

Joined: Apr 14, 2001
Posts: 6
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

Joined: Apr 03, 2001
Posts: 178
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

Joined: Jul 28, 2000
Posts: 1845
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

Joined: Apr 14, 2001
Posts: 6
Aleksey & Rahul
thanks a lot, I'm just preparing to submit my project and had last minute doubts about some stuff
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: location of db.db. in the submission jar
 
Similar Threads
Policy file question and readme question
should there be 2 "db.db" files
Submission of assignment
Jar
Can't find suncertify.properties file