Getting location of the java application

How do you get the location of the application that you are running? Id like to get the path location it is in the form of a string so I can load all of the other images and what not. e.g. "C://My Documents//Application" blah

Re: Getting location of the java application

get the location of the application

Do you mean where the class file is loaded from or where the current directory is when the program is executing?
The class files would be in a folder on the classpath. I think getResource could tell you.