The Artima Developer Community
Sponsored Link

Java Answers Forum
MIssingResourceException

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
al

Posts: 11
Nickname: allelopath
Registered: Jun, 2003

MIssingResourceException Posted: Oct 20, 2003 3:48 PM
Reply to this message Reply
Advertisement
I had this line working:
resourceBundle = resourceBundle.getBundle("foo");
It would find the foo.properties file

So then in the same directory as the foo.properties file, i created another directory called "resources" and moved the foo.properties file to there. Then i changed the code:
resourceBundle = resourceBundle.getBundle("resources/foo");
and add the resources folder to the classpath, but now i get:

Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name resources/foo, locale en_US...

What do i need to do?

Topic: applet display Previous Topic   Next Topic Topic: How Simple Is Simple?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use