Discussion:
PropertyResourceBundle and packages
(too old to reply)
No one
2005-08-25 13:58:01 UTC
Permalink
I've used PropertyResourceBundle to load .properties files before in
unpackaged classes, but now I have some in a package and I can't figure
out the proper file name and base name to give .getBundle(). I have
tried file names such as:

Classname.properties
full.package.path.Classname.properties

and have tried giving boht the .getBundle(). Neither seems to work.
the .properties file does show up in the correct directory in the
classes folder (that is, with the .class file for the class). WHat am I
missing here?

Thanks in advance.
No one
2005-08-25 15:17:02 UTC
Permalink
Post by No one
I've used PropertyResourceBundle to load .properties files before in
unpackaged classes, but now I have some in a package and I can't figure
out the proper file name and base name to give .getBundle(). I have
Classname.properties
full.package.path.Classname.properties
and have tried giving boht the .getBundle(). Neither seems to work. the
.properties file does show up in the correct directory in the classes
folder (that is, with the .class file for the class). WHat am I missing
here?
Thanks in advance.
Never mind. I must have been sucking on the stupid pump pretty hard. Duh..

filename: classname.properties
arg to getBundle(): "\\full\package\\path\\classname"

Duh.

Loading...