• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

How to read hard disk physical serial number?  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
please I would like to know how to read Serial number by Using Java.

I heard that I should use JNL.

Regards.
 
Ranch Hand
Posts: 479
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an article on it here:

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

rc
 
Sami Ahmad
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 479
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Marshal
Posts: 64494
225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ralph Cook wrote: . . . It is not a "beginning java" level thing . . .

Agree. Moving thread.
 
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!