This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Look at the java.lang.System class API. Under the "getProperties()" method you will see many of the standard Java properties that are set for you. In particular, you may get what you need with the "user.dir", "user.home" or "java.io.tmpdir" properties. [ January 07, 2004: Message edited by: Wayne L Johnson ]