PropertyResourceBundle and packages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • No one

    #1

    PropertyResourceBundle and packages

    I've used PropertyResourc eBundle 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.prope rties
    full.package.pa th.Classname.pr operties

    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

    #2
    Re: PropertyResourc eBundle and packages

    No one wrote:
    [color=blue]
    > I've used PropertyResourc eBundle 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.prope rties
    > full.package.pa th.Classname.pr operties
    >
    > 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.[/color]

    Never mind. I must have been sucking on the stupid pump pretty hard. Duh..

    filename: classname.prope rties
    arg to getBundle(): "\\full\package \\path\\classna me"

    Duh.

    Comment

    Working...