|
-
October 6th, 1999, 12:20 PM
#1
ResourceBoundle for .properties file
When run following code,
ResourceBundle labels =
ResourceBundle.getBundle("LabelsBundle",currentLocale);
I got exception:
C:\clearcase\I18N>java PropertiesDemo
java.util.MissingResourceException: Can't find resource
at java.util.ResourceBundle.getObject(ResourceBundle.java:282)
...
I use jdk1.1.7B and LabelsBundle.properties is located at same directory where
class files stay. It looks like jdk throw exception when it believes there is no
LabelsBundle.class file. I thought jdk should look for property file after no
finding class file. is that true?
May I mess some thing here.
Thanks,
Hong [email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|