Go Back   Java Programming Forums > Java Standard Edition Programming Help > Java Native Interface

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-09-2009, 01:19 AM
Junior Member
 

Join Date: Sep 2009
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
ttsdinesh is on a distinguished road
Arrow hardware ID

how to find the hardware ID like, Harddisk serial number, processor serial number, motherboard serial number, etc. in java?



Reply With Quote Share this thread on Facebook
Sponsored Links
  #2 (permalink)  
Old 25-09-2009, 03:41 AM
helloworld922's Avatar
Super Moderator
 

Join Date: Jun 2009
Posts: 827
Thanks: 5
Thanked 186 Times in 171 Posts
helloworld922 will become famous soon enoughhelloworld922 will become famous soon enoughhelloworld922 will become famous soon enough
Default Re: hardware ID

Unfortunately, that's not possible in pure Java. You can look into JNI, though.
__________________
ASCII a question .. Get an ANSI
Reply With Quote
  #3 (permalink)  
Old 25-09-2009, 07:03 AM
Json's Avatar
Super Moderator
 

Join Date: Jul 2009
Location: Manchester, United Kingdom
Posts: 861
Thanks: 31
Thanked 112 Times in 108 Posts
Json will become famous soon enoughJson will become famous soon enough

I'm feeling Happy
Default Re: hardware ID

Not sure but SIGAR might offer something.

Sigar API

// Json
Reply With Quote
  #4 (permalink)  
Old 25-09-2009, 02:12 PM
Junior Member
 

Join Date: Sep 2009
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
ttsdinesh is on a distinguished road
Exclamation Re: hardware ID

i will be helpful if i have code snippet.coz i am new to java. thank u in advance.
Reply With Quote
  #5 (permalink)  
Old 26-09-2009, 01:40 PM
Json's Avatar
Super Moderator
 

Join Date: Jul 2009
Location: Manchester, United Kingdom
Posts: 861
Thanks: 31
Thanked 112 Times in 108 Posts
Json will become famous soon enoughJson will become famous soon enough

I'm feeling Happy
Default Re: hardware ID

I wouldn't recommend doing JNI stuff if you are new to Java, unless you are coming from a C/C++ background.

// Json
Reply With Quote
  #6 (permalink)  
Old 26-09-2009, 05:22 PM
helloworld922's Avatar
Super Moderator
 

Join Date: Jun 2009
Posts: 827
Thanks: 5
Thanked 186 Times in 171 Posts
helloworld922 will become famous soon enoughhelloworld922 will become famous soon enoughhelloworld922 will become famous soon enough
Default Re: hardware ID

It's my standard answer to anything that can't be done in pure Java. Why do you want to know the serial number of your harddisk and such? It's much easier to try and find that on the hardware itself (particularly the mother board).
__________________
ASCII a question .. Get an ANSI
Reply With Quote
  #7 (permalink)  
Old 27-09-2009, 12:29 AM
Junior Member
 

Join Date: Sep 2009
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
ttsdinesh is on a distinguished road
Default Re: hardware ID

actually i am doing a project to attach hardware IDs with email. so that we can easily track the email. it will have uses in some other fields also.
Reply With Quote
  #8 (permalink)  
Old 27-09-2009, 08:17 AM
helloworld922's Avatar
Super Moderator
 

Join Date: Jun 2009
Posts: 827
Thanks: 5
Thanked 186 Times in 171 Posts
helloworld922 will become famous soon enoughhelloworld922 will become famous soon enoughhelloworld922 will become famous soon enough
Default Re: hardware ID

How many of these things do you have to look up? It may be easier to manually look them up and store those codes with some key-file on your computer (say like putting a serials.cfg file somewhere on that computer). This way, your program only will have to handle file reading, a much easier task.

FYI: I think that windows machines generate their own serial codes for hard disks that may or may not be the same as the manufacturer's serial codes. This is because of the way window's drivers work, and each partition of a single hard-drive produces a separate serial code.
__________________
ASCII a question .. Get an ANSI
Reply With Quote
Reply

Tags
hardware serial number, hd id

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




100 most searched terms
Search Cloud
2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java actionlistener java actionlistener jbutton addactionlistener addactionlistener java avatar hardware id convert double to integer java double format java double to int java double to integer in java double to integer java eclipse shortcut keys eclipse tutorial for beginners exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.outofmemoryerror: java heap space format double java get mouse position java hardware id avatar java 2 dimensional arraylist java 2d arraylist java actionlistener java addactionlistener java button actionlistener java convert double to int java double format java double to int java double to integer java for beginner eclippse java format double java forum java forums java get mouse position java ipod touch java list to map java mouse position java programming forum java programming forums java sendkeys java.lang.reflect.invocationtargetexception java.util.arraylist jbutton actionlistener jbutton java jtextarea font color programming forums string to int java two dimensional arraylist java writing apps for ipod touch

All times are GMT. The time now is 01:27 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.