• Post Reply 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with loading properties from deployment.properties

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an application in which various properties like Xms and Xmx values are set while the user logs in. The file <User's HOME>/Application Data/Sun/Java/Deployment/deployment.properties is loaded into a Properties object and the values are set from there ..



For some reason, the value for key, "deployment.javapi.jre.1.5.0_11.args" (line #:4) is always returned as null. When I check the properties file it does contain a value for the corresponding key. Is there any reason why this does not work. Any suggestions are welcome. Thanks in advance.

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does the underscore character generally work as a property name?
 
Sugantha Jeevankumar
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes.. Normally, "." is used to separate words in a property's key. I changed them to underscores in a sample file and it works fine.

I am just thinking.. Can this be an issue with multiple JREs being present in a system and the application having trouble reading the JRE parameters of a specific version of JRE. I am not sure. Any pointers or suggestions are appreciated. Thanks in advance.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic