King_Weaver
Gawd
- Joined
- Nov 26, 2006
- Messages
- 620
From what directory are you running the program? "user.dir" will vary depending on what directory you're in on the command line when you invoke java.
If my working directory is the default (C:\Users\Joseph Weaver) it saves the files in the C:\Users directory. If I change my directory to that of the flash drive it saves it to the root directory of the flash drive. I need it to always save the file in the same directory as the .jar file