Two Laptop Bag*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "help!" Watch "help!" New topic
Author

help!

kelly zeng
Greenhorn

Joined: Oct 16, 2002
Posts: 7
I have started scjd.but There are some question .
I want to access database by this :
Data db=new Data("db.db");
why error?
parthiban subramaniam
Ranch Hand

Joined: May 15, 2002
Posts: 116
hi,
the string you pass to the data constructor is the location of the db file along with the file name and extension
for example
if your db.db file is in c:
then "c:\\db.db"
cheers,
parthi.


Even crazy and silly looking problems are sometimes real.
kelly zeng
Greenhorn

Joined: Oct 16, 2002
Posts: 7
no,path is not true reason!
parthiban subramaniam
Ranch Hand

Joined: May 15, 2002
Posts: 116
hi
no path no true reason! ??
be specific on your error and i can try and be more specific .. from the code "Data db=new Data("db.db");" that's all i can guess
cheers
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

"p.p."-
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
here.
Thanks! and welcome to the JavaRanch!
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help!