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

geting OS of Client

 
vikram ahuja
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
vikram ahuja
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic