How to read deployment.properties like the java console does
From the java console, I can dump system and deployment properties.
I know that the System.getProperties() api allows me to programmatically retrieve the system props.
Can someone tell me how I would retrieve the deployment props as the console does?
If you want to know why I am trying to do this -- it is to get at the proxy settings as configured in the JCP -- they appear in the deployment properties, but not in the system properties, and I need to know the proxy config.
[501 byte] By [
bryanvsuna] at [2007-11-26 19:33:21]

# 2
Thanks for the info on the other thread, but that info does not address this particular question.
When you run the java console, you can issue the "s" keypress command to " dump system and deployment properties"
I can certainly write the code to enumerate system properties, but I see no interface or method to do the same for deployment properties.
On my machine, the file "deployment.properties" is located under:
C:\Documents and Settings\USERNAME\Application Data\Sun\Java\Deployment
This file is updated with the info saved in the java control panel.
Do you know how to access the set of deployment properties?
# 4
You provided no reference to access the collection of deployment properties. You provided information on the ProxySelector class which does indeed help me to find out proxy information, however, this is but a small subset of deployment properties.