• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting hardware details,processor type through java

 
vanlalhmangaiha khiangte
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 6114
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.
 
Tim Moores
Bartender
Posts: 2895
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic