Re: Serial number
steve wrote:
On Tue, 29 May 2007 03:34:33 +0800, Roedy Green wrote
(in article <1lbm539en9c99gu8q8c4kd820dgq5d2787@4ax.com>):
On Mon, 21 May 2007 09:58:28 -0400, Lew <lew@nospam.lewscanon.com>
wrote, quoted or indirectly quoted someone who said :
i want to generate a number that is unique for a machine.
I decided to get hdd serial. But i have to find more than that.
which hardware numbers can i take? how?
for Intel CPU, there isa CPU serial number you can get at via JNI. See
http://mindprod.com/products1.html#CPUSER
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
only if it is enabled in the bios.
Thus your "Write Once, Run Anywhere" code becomes non-portable even down to
the hardware level, much less the OS level.
AFAIK there is no inherent unique identifier for a computer, at least none
assigned by an outside authority with a promise of uniqueness. In the case of
the Intel CPUID, the public reacted negatively to the proposal and it either
died or went underground. Does the chip even still have it? Is it enabled or
disabled by default?
Looks like you'll have to create your own.
--
Lew