There is binary file for update my switch configuration in src/main/resources directory in run time. when i try it with debug mode in eclipse the file exist and there is no problem, but when i create an executable jar file for real application this file does not exist.
Where is the problem?
String filePath = new File("/resources/firmwares/myConfigFile.bin").getAbsolutePath();
File f = new File(filePath);
if (f.exists())
upload();