• 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

Extraction action

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