File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes get installed application folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "get installed application folder" Watch "get installed application folder" New topic
Author

get installed application folder

Carl John
Ranch Hand

Joined: Jun 14, 2010
Posts: 47

Hi

I need to get the installed Postgresql Database directory through java code.How can i get that location?.Please guide me!


Thanks.


CJohn
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
What OS you are using? If Windows is a System Variable mapped to its installation location? If so you can try Environmental Variables. If it's not mapped then read the path variable and search for "Postgres" (or any such string you see the variable is set to). It might get you to where Postgres is installed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: get installed application folder