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.
Does the underscore character generally work as a property name?
Joined: Jun 06, 2007
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.