Hi,

I'm going to perform an act of hypocrisy <sp?> here, by posting an
off-topic question, after mildly flaming others for doing the same... so
shoot me :)

I'm working on an installer for a Java program we're distributing.  I'm
bootstrapping: running Java off the installation CD to install itself.  I
need to find out the system's OS/arch combination to choose the correct
JDK to install.  I want to cover as many combinations as possible, but to
do so I have to detect each type.  I've tested my code on as many machines
as I have access to, but any others people could help me out with would be
great.

I'm simply fetching the System properties "os.name", "os.version" and
"os.arch" and decoding them appropriately.  If your system spits back a
string different than the ones listed, I'd like to hear about it.

os.name values I've encountered:
        Linux
        Solaris
        SunOS
        Mac OS
        Windows NT
        Windows 95

(Note: it seems that Sun's JDK, at least, spits back "Windows 95" for 95
and 98 systems, while os.version are set to "4.0" and "4.10", resp.)

os.arch values I've encountered:
        x86
        ppc
        PowerPC
        sparc


Thanks very much for your help,
dstn.

----------------------------------------------------
--     Dustin Lang, [EMAIL PROTECTED]    --
User, n.: a particularly  slow and unreliable input/
output  device  that  is  attached by default to the
standard input and output streams.
----------------------------------------------------


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to