This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Unable to read properties file using resouce bundle Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Unable to read properties file using resouce bundle" Watch "Unable to read properties file using resouce bundle" New topic
Author

Unable to read properties file using resouce bundle

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 744
Hi,

I am tryig to read properties file using resource bundle which is not in class path. but i am getting below error



and below is my code to read properties file.


Can anybody help out solving this issue.

Thanks a lot.


Jigar Naik


Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

You have the choice of either :
  • Using PropertyResourceBundle (check the constructors)
  • Or put the properties file in the classpath and use getBundle("JMSConfig")


  • [My Blog]
    All roads lead to JavaRanch
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Unable to read properties file using resouce bundle
     
    Similar Threads
    How To Read boolean value from a property file
    ResourceBundle Problem
    Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
    Getting MissingResourceException
    ResourceBundle file name problem