Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Obtaining system properties

 
ryan burgdorfer
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know of a way to get a list of all the Windows (98, NT, etc.) system properties available to Java? I've tried looking through the API, but there is no mention of the specific properties themselves...just the methods for manipulating them.
A website with this info would be ideal...
Thanks,
------------------
  • Ryan Burgdorfer
  • Java Acolyte in
  • Columbus, OH USA
 
Kalpesh Soni
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you have not mentioned , which properties?
try this code


------------------
"Sun Certified Java Programmer"
KS
"Failing to plan is like plannig to fail!"
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course the getProperties() method only gets java related properties. Java does not deal with system speicific things like windows specific properties.
 
ryan burgdorfer
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to both of you, that is exactly what I was looking for.
------------------
  • Ryan Burgdorfer
  • Java Acolyte in
  • Columbus, OH USA
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

On a side note,
you should also keep in mind that the security model
in some situations limits your access to the system
properties, such as in Applets.
Refer to this link for details on this topic. http://java.sun.com/sfaq/#props
Also gives you a list of System properties
available in java.
regds.
- satya
 
ryan burgdorfer
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Satya,
<h4>Excellent!</h4>
This is exactly what I was hoping someone would post Many thanks!
------------------
  • Ryan Burgdorfer
  • Java Acolyte in
  • Columbus, OH USA
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic