Win a copy of Rust Web Development this week in the Other Languages forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Reading value from properties file using ResourceBundle and then call a method

Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi All
My Requirment is

I am reading all report parameters from my properties file,
say, then all the values I am reading using ResourceBundle via, then all the values I am setting in
2 HashMaps in, but I need to pass the HashMaps to main Java Programs and other programs for that I need put a method inside a
once called it will return HashMap which inside the sothat this method can be invoked from any job programs and get the HashMap , but inside WMTCOnfig is not accepting any methods except only one constructor, so how to resolve the problem,
I don't have any other file which read the values from properties file,
only file which will read property file called is
WMTConfig which accepts no methods and only one constructor
Malformed Expression-try{
config = ResourceBundle.getBundle("WMTConfig", Locale.ENGLISH);
illegal Start of Expression-before method name declaration
public HashMap ReportParameters(){ which inside a
please clarify,suggest
advance thanks
with regards
Posts: 1843
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Thank you for your posting to JavaRanch. I do realize that you are probably eager to get an answer to your question, but posting to multiple forums is not the best way to acheive that. If all the replies are in one place, then you will get a better answer -- as will anybody who comes after you looking for information on the same problem.
To that effect, I am closing this thread in this forum. Replies should be posted here.
[ August 27, 2003: Message edited by: Joel McNary ]
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic