File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get installed application folder

 
Carl John
Ranch Hand
Posts: 47
Eclipse IDE Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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


Thanks.
 
John Jai
Rancher
Posts: 1776
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic