File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes resource bundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "resource bundle" Watch "resource bundle" New topic
Author

resource bundle

Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167
Hey fellas,

I have two projects inside Eclipse, and one resource bundle for each one ("config/x_en_US.properties" and "config/y_en_US.properties"). The "X" project holds the business logic, while "Y" handles the GUI classes. The error messages in "X" project are retrieved from config/x_en_US.properties.

So, I start the GUI's application through "Y" project, use the interface and lead the "X" project to throw an exception with the message from x_en_US.properties... then I get this:

Exception in thread "AWT-EventQueue-0" java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key error.missing.value

Everything works fine from my test case located at "X" project. What went wrong? I don't know what to do anymore

I appreciate some help.

Thanks


Tiago Fernandez
http://www.tiago182.spyw.com/
Manuel Moons
Ranch Hand

Joined: Mar 05, 2002
Posts: 229
I'm not sure but is it possible that you are referring to a property in your resource bundle called "error.missing.value" that is not present in your resource property file?
Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167
No, unfortunatelly that's not the problem...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: resource bundle