• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Location of .db File from anywhere

 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
Probably this is stupid can someone suggest something?
The Sun guys can start the FBN application from any directory if they have the classpath set properly.Am having difficulties locating the .db file which i need to specify in the Data constructor.In local mode i make the user select the file, so it's fine but in remote mode, i have a problem since i need to know where .db file is to initialize Data. Is it ok to tell where the .db files need to be kept for the application to work properly.I feel i can make it to work only if the .db file is placed in the directory from where the RemoteServer is started. I'm unable to use the java.io.File class for relative paths. Is there a way of making the code work assuming that .db file will be in a directory
suncertify/db. How do i reach /suncertify/db/DBBinaryFile.db from
anywhere?
karthik.
 
Raj Mehra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a good question. Even I am looking forward for a correct way to dot it. But I would assume that keeping the db file in the directory from where the RemoteServer is started.
Thanks,
Raj
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic