File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Obtaining system properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Obtaining system properties" Watch "Obtaining system properties" New topic
Author

Obtaining system properties

ryan burgdorfer
Ranch Hand

Joined: Jan 24, 2001
Posts: 219
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


<UL TYPE=SQUARE><I><LI>Ryan Burgdorfer<BR><LI>Java Acolyte</I></UL>
Kalpesh Soni
Ranch Hand

Joined: Jan 02, 2001
Posts: 312
you have not mentioned , which properties?
try this code


------------------
"Sun Certified Java Programmer"
KS
"Failing to plan is like plannig to fail!"


Test 094, IBM WID 6.0 cert
SCJP 1.2
SCBCD 1.3 Beta
SCWCD 1.4 Beta
SCMAD Beta
SCDJWS Beta

KS
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Of course the getProperties() method only gets java related properties. Java does not deal with system speicific things like windows specific properties.


"JavaRanch, where the deer and the Certified play" - David O'Meara
ryan burgdorfer
Ranch Hand

Joined: Jan 24, 2001
Posts: 219
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

Joined: Jun 03, 2000
Posts: 5040

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

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
ryan burgdorfer
Ranch Hand

Joined: Jan 24, 2001
Posts: 219
Satya,
<h4>Excellent!</h4>
This is exactly what I was hoping someone would post Many thanks!
------------------
  • Ryan Burgdorfer
  • Java Acolyte in
  • Columbus, OH USA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Obtaining system properties