wood burning stoves 2.0*
The moose likes Java in General and the fly likes How to read hard disk physical  serial number? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to read hard disk physical  serial number?" Watch "How to read hard disk physical  serial number?" New topic
Author

How to read hard disk physical serial number?

Sami Ahmad
Greenhorn

Joined: May 18, 2010
Posts: 9
Hi all,
please I would like to know how to read Serial number by Using Java.

I heard that I should use JNL.

Regards.

Best Regards.

SCJP 6 SCWCD 5
Ralph Cook
Ranch Hand

Joined: May 29, 2005
Posts: 479
There is an article on it here:

http://www.rgagnon.com/javadetails/java-0580.html

rc
Sami Ahmad
Greenhorn

Joined: May 18, 2010
Posts: 9
yeah I saw this article, this is not retrieve real or physical serial number for hard disk, it's return unique number for current time information for C driver. anyway I know that the JVM need to call Java Native Language JNL, which mean to use other language like C or Python but I don't know exactly how to get Serial number by use C or other language.

So I will use JNL to get Serial Number from C++ as Example. any ideas.

Ralph Cook
Ranch Hand

Joined: May 29, 2005
Posts: 479
I haven't kept up with it, but it at least used to be referred to as JNI (Java Native Interface). That's how I would look it up through google or amazon.

There are books written on the subject. It is not a "beginning java" level thing; unless you're already familiar with very low-level mechanisms used by languages and OS language-independent library handling, there's going to be a LOT to learn.

Good luck with it.

rc
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38340
    
  23
Ralph Cook wrote: . . . It is not a "beginning java" level thing . . .
Agree. Moving thread.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to read hard disk physical serial number?