Location of Program

How do I get the location of a program on the computer? Like the what folder it is in?
[93 byte] By [blackmagea] at [2007-11-27 10:05:34]
# 1
You can't do that in an easy (and good) way.
kajbja at 2007-7-13 0:40:37 > top of Java-index,Java Essentials,Java Programming...
# 2
Why do you thin you need it? I guess you want to do it because you want to open a file using a certain program? You can in that case use Desktop.open(File file) Kaj
kajbja at 2007-7-13 0:40:37 > top of Java-index,Java Essentials,Java Programming...
# 3
You mean?System.out.println(System.getProperty("user.dir"));
_helloWorld_a at 2007-7-13 0:40:37 > top of Java-index,Java Essentials,Java Programming...
# 4
> You mean?> > System.out.println(System.getProperty("user.dir"));> yea, that one works well enough, thnx
blackmagea at 2007-7-13 0:40:37 > top of Java-index,Java Essentials,Java Programming...