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

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

 
Hydrian Metanroid
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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..
 
Herman Schelti
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

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


Why do you want that?

Herman
 
mohamed sulibi
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi;

Why ?

Best regards.
Mohamed Darim.
 
Hydrian Metanroid
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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~
 
Ashish Rajput
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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
 
Alex Belisle Turcot
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic