jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes Getting hardware details,processor type through java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Getting hardware details,processor type through java" Watch "Getting hardware details,processor type through java" New topic
Author

Getting hardware details,processor type through java

vanlalhmangaiha khiangte
Ranch Hand

Joined: Sep 11, 2006
Posts: 169
Hi all,
I am writing a code to get the hardware details of my computer like Processor Type, Ram, Hard disk type, etc ..


I am not able to get the hardware details , is there any way to get these details without using some extra tools/softwares.
What class/library i am suppose to use to get these values?

Regards,
Vanlal
Brian Burress
Ranch Hand

Joined: Jun 30, 2003
Posts: 122
I googled "java access processor type" and found a similar topic on
stackoverflow

This topic mentions this SIGAR ..I realize you indicated you do not want anything external. Not sure if you want to avoid a purchased option or just want something that is core J2SE.
vanlalhmangaiha khiangte
Ranch Hand

Joined: Sep 11, 2006
Posts: 169
Hi ,
I want something that is core java only.. I don't want to use other tools ..
I need to get details like the MotherBoard type, DVD type etc.. hardware details ..
Is there some library/code that is available to do this..

Regards,
Vanlal
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3378
    
    9
No.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Resorting to native code via JNI will let you get at almost anything, at the cost of having to deal with native code on any OS/CPU architecture combination you care to support.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting hardware details,processor type through java
 
Similar Threads
java heap memory check
run linux command in java
How to lock java app for single PC
getHardwareAddress returning null
Data loss during file transfer