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

NX: if the .db file is into of the .jar, need I use a file chooser?

 
Wilder C Rodrigues
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi again folks,
If the .db file is into of the .jar, need I use a file chooser?
I think that I can implicitly specify the file location, can I?
Thanks,
Wilder
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Wilder,
The db file is usually in the jar you submit, which is usually unpacked by the examiner. So when the examiner runs your application it will no longer be in a jar file.
I think your instructions have a comment/requirement that your configuration/properties file must be in the current working directory. My reading of that is that the client application may be started from somewhere other than where the jar files/database files are stored. So some way of finding the database file (either programattically or via a text field/file chooser) may be required.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic