This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Need Your Help with db.db Access!!!

 
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!

 
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).]
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic