I have a simple java app that tries to open a text file in the current directory. It works fine under command prompt but when I try to run it in netbeans it gives me an error saying the file was not found. Obviously thats because I'm not giving it the full path and netbeans' working directory is not set to where my java file is. I'm wondering, how do you change the "current directory" for netbeans so it would look for my file in my app's folder?