This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes ResourceBundle for properties files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "ResourceBundle for properties files" Watch "ResourceBundle for properties files" New topic

ResourceBundle for properties files

Paul Keohan
Ranch Hand

Joined: Mar 15, 2000
Posts: 411
If anyone has any insight into the following I'd love to hear it.
I have the following piece of code.
String classPath = System.getProperty("java.class.path",".");
System.out.println("classpath here is " + classPath);
ResourceBundle bundle = ResourceBundle.getBundle("vipsvk");

Everytime I run this I get a MissingResourceException yet the classpath display shows up the directory which contains quite clearly. How is it possible that getBundle cannot find the file yet the line immediately before it shows that the correct directory is in the classpath?
Thanks for any help as this is driving me up the wall.
Don't get me started about those stupid light bulbs.
subject: ResourceBundle for properties files