Please revise your display name to meet the JavaRanch Naming Policy. To maintain the friendly atmosphere here at the ranch, we like folks to use real (or at least real-looking) names, with a first and a last name. First names can be initials, but last names cannot.
The problems I see with using relative paths are - 1) You can't be sure where the files are being created since it depends on how the application is invoked. 2) You may not have permission to write to the directory.
I try to create files in directories that I know I have permission. For example System.getProperty("user.home") is, as the name suggests, the user 'home' directory and one should be able to assume that a process running as a particular user can create files (or directories) in that user's home directory. If one is in any doubt then one can always use File.canWrite() .
If you just want a temporary file then one of the File.createTempFile(...) methods can be used or you can look use the system temporary directory which can be obtained from System.getProperty("java.io.tmpdir").
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.