• 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

Can I make a RandomAccessFile object to file located in jar?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I'm trying to finish my scjd work.
but I've got a problem....
while I make a jar file to submit, my program cannot make a RandomAccessFile object the database file.

I searched some articles about how to make a input stream..
but I have to know how to make output,, and... moreover...
I wonder if it is possible to make a RandomAccessFile to database file..

Thank you and I'll be waiting your answer..
 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

Can I make a RandomAccessFile object to file located in jar?



Why do you want that?

Herman
 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi;

Why ?

Best regards.
Mohamed Darim.
 
Hydrian Metanroid
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh.. .... damn....
I spent too much days to solve this......
poor me..

Suddenly I see~ ;;
I do not have to locate the database in runme.jar

Thank you for your concerning

May the force be with you~
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I am facing the same problem with RAF, which is what I am using for reading and writing to the db file. I am not able to get it work with my file in the runme.jar. Any reason why you didnt have to do this?
Thanks!
Ashish
 
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ashish Rajput:
Hi I am facing the same problem with RAF, which is what I am using for reading and writing to the db file. I am not able to get it work with my file in the runme.jar. Any reason why you didnt have to do this?
Thanks!
Ashish



Hi,

your database file is located beside runme.jar, not inside. The database file can thus be accessed without looking in the jar, but simply in a normal directory.

Regards,
Alex
[ September 13, 2008: Message edited by: Alex Belisle Turcot ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic