Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ResourceBundle for properties files

 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 vipsvk.properties quite clearly. How is it possible that getBundle cannot find the vipsvk.properties 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.
Payl
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic