system reserved property names

David Holmes david.holmes at
Fri Apr 26 09:17:59 UTC 2013

On 26/04/2013 1:29 PM, huizhe wang wrote:
> On 4/18/2013 7:44 PM, David Holmes wrote:
>> On 19/04/2013 8:32 AM, huizhe wang wrote:
>>> On 4/18/2013 2:13 AM, Alan Bateman wrote:
>>>> On 18/04/2013 07:28, huizhe wang wrote:
>>>>> System.getProperties [1] returns all of the "current" system
>>>>> properties. Is there a way to get a list of the system reserved
>>>>> properties such as "java.version" and etc.? Would anyone know?
>>>>> [1]
>>>> I'm not 100% sure what you mean by "reserved" but I will guess that
>>>> you asking if there is a complete list of the system properties
>>>> defined by the Java SE APIs and perhaps the list of JDK-specific
>>>> system properties too. Off-hand, I'm not aware of a master list, they
>>>> are instead "buried" in the API specs. Is the context the system
>>>> properties that JAXP 1.5 is proposing to define?
>>> Yes, those defined by the Java SE APIs or the JDK-specific system
>>> properties. Not related to JAXP 1.5, I'm just asking a general question
>>> to find out if there's an API to get the 'master' list.
>> As with Alan I don't know what you mean by "reserved". The
>> documentation you link to above tells you what properties must exist.
>> But an implementation can add other properties. I don't know if there
>> is any rule that says they can't add properties in the java.* namespace.
> I meant to ask if there's an API to get the list of JDK-specific system
> properties, and it seems there's none.

Do you want to be able to determine which properties in 
System.getProperties() are mandated by the platform specification versus 
being properties the current implementation happens to provide? If so, 
no there is no API to do that.


> Thanks,
> Joe
>> David
>>> -Joe
>>>> -Alan

More information about the core-libs-dev mailing list