Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCMJD
Search Coderanch
Advance search
Google search
Register / Login
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Developer Certification (OCMJD)
PLS help me about file access!!
sparkle zou
Greenhorn
Posts: 7
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
now the file struct is like the bellow:
<root>/db
db.db
<root>/server
RemoteDataImp.java
how to write the code in RemoteDataImp.java to access file db.db??
the code writen bellow is wrong!
dataWrapper = new Data("../db/db.db");
Brian Blignaut
Ranch Hand
Posts: 61
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Is that your jar structure? Your db.db file does not need to be in your jar.
sparkle zou
Greenhorn
Posts: 7
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Not in Jar;just in source code~!
sparkle zou
Greenhorn
Posts: 7
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I get it!
use
dataWrapper = new Data("..//db//db.db");
instead of
dataWrapper = new Data("../db/db.db");
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Thoughts wanted READMDE.txt
how do you people plan to give the source files
location of DB.DB file
(NX)path of db file
URLyBird Packaging
More...