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
Java Training from DevelopIntelligence
  #2 (permalink)  
Old 25-09-2009, 03:41 AM
helloworld922's Avatar
Super Moderator
 

Join Date: Jun 2009
Posts: 1,329
Thanks: 5
Thanked 282 Times in 254 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

Please surround your code with [highlight=Java]code goes here[/highlight].
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: 1,181
Thanks: 55
Thanked 137 Times in 133 Posts
Json will become famous soon enoughJson 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: 1,181
Thanks: 55
Thanked 137 Times in 133 Posts
Json will become famous soon enoughJson 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: 1,329
Thanks: 5
Thanked 282 Times in 254 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

Please surround your code with [highlight=Java]code goes here[/highlight].
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: 1,329
Thanks: 5
Thanked 282 Times in 254 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

Please surround your code with [highlight=Java]code goes here[/highlight].
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
2d arraylist java actionlistener actionlistener in java actionlistener java addactionlistener addactionlistener in java addactionlistener java applications of oops could not create java virtual machine xp double format java double to int 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.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double java get mouse position java java 2d arraylist java actionlistener java addactionlistener java convert list to map java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming help java sendkeys java two dimensional arraylist java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics two dimensional arraylist java writing ipod apps

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