aspose file tools*
The moose likes Java in General and the fly likes geting OS of Client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "geting OS of Client" Watch "geting OS of Client" New topic
Author

geting OS of Client

vikram ahuja
Greenhorn

Joined: Dec 28, 2000
Posts: 6
How can I get OS of Client during runtime.Please let me know of it at your earliest
thanks in advance
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
System.getProperty(os.name);
Check the getProperties() method of the System class for all the Properties that you can get.

[This message has been edited by Cindy Glass (edited February 07, 2001).]


"JavaRanch, where the deer and the Certified play" - David O'Meara
vikram ahuja
Greenhorn

Joined: Dec 28, 2000
Posts: 6
Can I do this using Java script too. when I am trying to use this in different browsers different results are retrieved. ie when i am running the applet where i use getproperties in IEexplorer i get WindowsNT 4 & when i use Netscape it gives back WinNT only . So is there a consistant way where I can the OS .
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
You are a bit at the mercy of the browser as to how they implement the JVM specifications. The only thing that you know is that IE will give consistant responses and Netscape will give consistant responses, each in their own special way.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: geting OS of Client