• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jar File Rephrased A Bit

 
Keith Jones
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

My question concerns the runme.jar file. This file is to contain all that we submit right? Well one of the things that it is to contain is the db file that they sent us. Now the paper says that we must allow the the user to select the location of the database file. Now when the user runs the jar file do they have to select that very same jar file as the location of the db file (since the db file is contained inside it) and then our program extracts the db file from there and then after each write or read operation copies it back into the jar file? Or do you think that what they want is for us to select a file that can be anywhere on the hard drive and not part of a jar file or have I got something else wrong here?
 
Mark Smyth
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Keith Jones:Hi all,

My question concerns the runme.jar file. This file is to contain all that we submit right? Well one of the things that it is to contain is the db file that they sent us. Now the paper says that we must allow the the user to select the location of the database file.


Yes you must have the same db file in the submission. This is probably refor use by whatever automatic testing harness that sun will run on your submission.

Now when the user runs the jar file do they have to select that very same jar file as the location of the db file (since the db file is contained inside it) and then our program extracts the db file from there and then after each write or read operation copies it back into the jar file?


No this is not nescessary as this would be a very slow process if it was done after every read and write and is far outside the scope of the project.


Or do you think that what they want is for us to select a file that can be anywhere on the hard drive and not part of a jar file or have I got something else wrong here


I think that this is what your instincts were telling you and this is exactly the approach that the requirements are looking for.
BTW you can edit your posts instead of having to post almost the same thing twice.

Hope this helps,
Mark.
 
Keith Jones
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks mate.
 
Chulwoo Choi
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please re-check your requirements doc.
According to mine, runme.jar is just a part of the submission.
The submission should be a jar file containing:
runme.jar
original db file
source codes
javadoc
design doc
etc.

Chulwoo
 
Keith Jones
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chulwoo,
thanks for that you are absolutely right. the runme.jar is part of another jar file.

cheers

k
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic