Paul, I already mentioned this before I think. Yes I can, I can use
"user.home" system variable for even OS independent use home
directory. But the point I am making is, putting the db on user home
will make the application really vulnarable. That's why you do not see
any db/important files of any application in your home directory. All
you see is user preferences. Which you can delete, but still the
application will run. Of course we can put db/important app data on
user home, but putting db on user home, or putting app installation
location on a properties file on user home will make the application
vulnarable.

On Aug 12, 7:49 pm, "[email protected]" <[email protected]>
wrote:
> > So there is no way, we can tell our
> > application where the DB is located when you run the application any
> > time after the first installation.
>
> You don't say which OS you are using, but assuming we are talking
> about Windows, there is a standard place to store app data such as
> your database file.  Ie. in the hidden "AppData" directory in the
> user's home directory.
>
> Can you not use whatever Windows' standard algorithm is for
> determining the correct location?
>
> Even if you trying to be OS independent, it seems likely that there is
> a lib out there somewhere that provides the necessary support for all
> OSes.  I'd be very surprised if this is not already a solved problem.
>
> Paul

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to