• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Your Help with db.db Access!!!

 
Daniel Wu
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does any folk encounter the message "java.io.IOException: Data: request to open non-existant or inaccessible filesuncerfity.db.db." when run the following code? Thanx!

 
Andras Nemeth
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Daniel,
You wrote:
Data data= new Data("suncerfity.db.db");
I am not sure to agree with you in the parameter
of Data class.
You should try ./suncertify/db/db.db, I guess... but it
depends on you also.
(At least, you missed one "db", package structure is
"suncertify.db" and the name of the database file is "db.db".)
Cheers,
Ban
 
Daniel Wu
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andras,
Thank you very much! Inspired by your advice, i finally got it done! It must be "C:/scjd/starting//suncertify/db/db.db"; i tried by using \ rather than /, and it didn't work; and i also tried other ways, all failed! Do we have to experience so many failures before we get the last correct one?!(:=
Once again, thank you for your message!
Daniel
[This message has been edited by Daniel Wu (edited August 11, 2001).]
 
Andras Nemeth
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Daniel,
If you use the windows kind of path you should use double
\\ because (\something can be an escape sequence).
However, I do not recommend to use windows way...
Cheers,
Ban
 
Daniel Wu
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah Andras,
you are right I use Windows 98SE for my laptop come with that (:-. I plan to test the project in another OS when i am done, say, a flavor of Unix. Is that feasible? Thanks!
Regards,
Daniel

[This message has been edited by Daniel Wu (edited August 12, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic