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
Post a Comment