In java, System.getProperty("user.home") returns the home directory of the user, usually C:\windows in Windows or /home/usrname/ in Linux.

My question is what do I enter in the getProperty method to detect the directory the class file is in?

Thank you.