Win a copy of Spring Boot in Practice this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Location of .db File from anywhere

 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic