getAbsolutePath « API « Java I/O Q&A

1. What are the possible causes of File.getAbsolutePath() returning null?

I'm running into a bug that appears to be caused by File.getAbsolutePath() returning null. What conditions could cause this? (The system seeing the exception is running Windows XP.) The

2. getAbsolutePath()

3. File.getAbsolutePath()

A while ago I was trying to work through an i/o chapter of a Java book I was reading and was having problems figuring out where my "current directory" was so that I could tell java where to find my file to be read. A kindly JavaRanch feller gave me this code: import; public class GetPath { public static void ...