I have a jar file which needs to read a properties file in the same location as the jar file. I get a filenotfound exception when I run the following command
D:\emailer>java -jar test.jar
the test.jar and the .properties file are in the same folder i.e d:\emailer
however when i run this app from eclipse its able to find the prop file and no errors thrown. Do I need to do anything different when i run it as a jar file?