system properties retrieval
From: SirThanxALot (sirthanxalot_at_mail.com)
Date: 03/18/04
- Previous message: Dario: "Re: Different complining result between SUN JDK 1.4 and IBM JDK 1.3.1"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 18 Mar 2004 13:25:14 +0100
I want to retrieve what OS is installed via java
i need the values that mozilla uses:
aix, beos, bsdi, dgux, freebsd, hpux, irix, linux, macos, ncr, nec, netbsd,
nextstep, nto, openbsd, openvms, os2, osf, palmos, qnx, sinix, rhapsody,
sco, solaris, sonly, sunos, unixware, win16, win32, win9x, winnt, wince
But when i run
System.getProperty("os.name");
i get something like "Windows 2000"
What are the other values that can be returned by this method
under linux i get "Linux"
under MacOSX "Mac OS X"
if i get all, or most of the names i can do the mapping manually
or alternatively, is there a way to retrieve the mozilla notation?
thanx in advance
SirThanxALot
- Previous message: Dario: "Re: Different complining result between SUN JDK 1.4 and IBM JDK 1.3.1"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|