Detecting Unix flavors

  • Thread starter Andrew Thompson
  • Start date
A

Andrew Thompson

Funny, your little applet says I have "Windows XP"
but "uname"

"uname".. from the command line, ..on Win?
..says I have "Windows_NT"
and I have an environment variable "OS=Windows_NT"
in reality I have Windows XP Professional

I get Windows XP when using "os.name" with
Sun 1.5, but Win NT using the MSVM. I guess
Sun VM figures it is Win XP after reading the
'Win NT' string returned by the OS, combined
with the OS version number.

(whispers) Oh, ..and those 'extreme'
boys? ..I'll just hope they're not
listening right now. (shhhhh) ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top