I have an application which is using a java.util.Properties class to store settings in a file.
I load the file this way: 
props.load(new FileInputStream("c2c_stngs.prop"));
Everything works well in IDE, also works after building and double click on .jar file.
My problem starts when I try to run it in command line like this:
java -jar c:\Works\project.jar
It throws an error:
java.io.FileNotFoundException: c2c_stngs.prop (The system cannot find the file specified)
I have the c2c_stngs.prop file in the same folder as the .jar file.
Also I've tried to run cmd as an Administrator, but still the same.
 
     
     
     
    