A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
Developer Certification (SCJD/OCMJD)
how to use new Data(dbName) to open db.db in jar?
Joined: Apr 17, 2002
Jan 18, 2003 17:41:00
In local mode, if I put db.db in jar(/suncertify/db/db.db), then call new Data(
dbName) to create an instance of Data, what dbName should I input?
Joined: Feb 24, 2002
Jan 19, 2003 08:09:00
You can't open a file inside of a jar file.
You need to have your db file live outside of your jar file.
*hint* I believe sun allows a command line parameter of the db file location
-Matt<br /> SCJP2<br /> SCJD
I agree. Here's the link:
subject: how to use new Data(dbName) to open db.db in jar?
Data constructor doubt
Question on db.db
PLS help me about file access!!
Really need help with this one!!!
Mark: Command lines
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014