• Post Reply Bookmark Topic Watch Topic
  • New Topic

Extraction action

 
Doug Avery
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my assignment (and I guess most others) there is a binary file that acts as the database. This is bundled up in a jar file for submission. Since the 'data' object accesses this via java.io file operations, is it unreasonable to include a step in the load/run instructions that extracts this file from the jar, and then instruct the user/evaluator to run the app from the jar file? Or is there a slick feature of 'jar' that I am missing?
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Or is there a slick feature of 'jar' that I am missing?

Well, you are probably thinking of programmatically loading resources from jar, and yes, that is very simple. For example, you can load a gif image from jar and use it for your frames. But you still have to mannually extract db.db, and that's perfectly fine.
Eugene.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!