執行以下程式碼出現MissingResourceException,
"StatsBundle"是ResourceBundle base name.
ResourceBundle stats = ResourceBundle.getBundle("StatsBundle",
currentLocale);
Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name StatsBundle
解法: 使用 fully qualified base name
ResourceBundle stats = ResourceBundle.getBundle("mytest.LocalizationTest.StatsBundle", currentLocale);
沒有留言:
張貼留言