This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes exception while reading db.db file from jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "exception while reading db.db file from jar file" Watch "exception while reading db.db file from jar file" New topic
Author

exception while reading db.db file from jar file

Reshma Das
Ranch Hand

Joined: Jan 29, 2002
Posts: 125
I created a jar file for this appln. while running the appln if give a relative path like
jar -jar server.jar lib\db.db
It gives the following error :
java.io.IOException: Data: request to open non-existant or inaccessible file lib\db.db
but if i give the entire path the appln works fine. Do i have to use the db file jared with my jar file or i should give the absolute path for the file pointing to a file located on disk ?
pls respond.
Dasong
Ranch Hand

Joined: Apr 05, 2002
Posts: 36
Hi respond this guy please
Dasong
Ranch Hand

Joined: Apr 05, 2002
Posts: 36
Hi guys
your suggestion please.
I cann't access db.db and userguide.html(for online help) when run client.jar
thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: exception while reading db.db file from jar file