Where should I place the java properties file under netbeans -
in netbeans ide creating 1 project.that project(web application) needs properties file.since application having several packages.and packages need read properties file in code.so should place java properties file.if place file out side of packages under sourcepackages seperately,i getting filenotfound exception.so should place it. , 1 more doubt if want change content in file in future should change contents since present in projects folder , under files->build->classes folder also.from should modify it.from changes effected. please help. thank you.
put file under /src/resources/, use below:
resourcebundle props = resourcebundle.getbundle("resources.config");
Comments
Post a Comment