eclipse - Improper working of java jar file on cmd- It does not find the .properties files -


i have created jar file of project through eclipse selected runnable jar file in eclipse. when run jar file in cmd works prperly when take on other system/pc don't work i.e not find .properties files. so,those operations require .properties not performed through cmd , rest of operations working well. need in case?

code reference:

try {     // loads constants.properties file     inputstream constantpropfile = classloader.class.getresourceasstream("/constants.properties");     constantprop.load(constantpropfile); }catch (ioexception e) {     // todo auto-generated catch block     e.printstacktrace();     } 


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -