Simple Question - Getting Runtime Directory??

ok im a bit stumpped, i want to know the directory that my java application is currently running in… i.e

C:/Javaapp/

I tried using System.(random commands), Runtime.(random commands)

couldnt find out what the current directory that the app is being run in, im sure there must be a simple way to do it, can someone put me out of my misery?

Google is your friend

Believe it or not i just spent 15 mins on yahoo trying to find out this information… and didnt get a single one of those links…lol

This is the right answer:

The FIle(".") dodge is making a BIG non-portable assumption… that your local file system translates “.” to current working directory.