how to get hardware details of a system using java program

India
November 13, 2009 8:28am CST
hi, i am in situation to retrieve hardware details like hard disk(make,model,serial number,capacity),monitor(screen size,make),keyboard(make,model,serial number),USB(Number of ports that are in the state of Enabled and Disabled),Ethernet card(make,serial number,MAC address),Processor(speed),Mouse(make,model and serial number).i am very happy if anybody can reply something relate on my question. Reply if you can !!!!!!
3 responses
@owlwings (43915)
• Cambridge, England
13 Nov 09
You don't need a Java application to do this. There are several free utilities which will list all of these details (if they are available from the hardware). The one that I've always used and find very good is Belarc: http://www.belarc.com/free_download.html
• India
13 Nov 09
hello owlwings ,how are you i think typing dxdiag in run will bring out everything whats spl in that software
@owlwings (43915)
• Cambridge, England
13 Nov 09
Of course, if you want to use or improve your Java skills by writing such a program, that is a different matter. I guess that it's possible so long as you know the appropriate calls to make to the hardware, however, when there are already plenty of utilities available which do this very successfully and competently, your time might be better spent on some other Java application. The other good utility that I know of (but don't use as much) is SiSoft Sandra (though, depending on what you need it for, only the Lite version is free): http://www.jaggedonline.com/sisoftware-sandra-home.html?langx=uk¤cy=gbp&a=site&location=home&mode=
@owlwings (43915)
• Cambridge, England
13 Nov 09
Hi, sarwanever. DXDiag is quite limited and only gives some basic information about the hardware (and the drivers) but Belarc gives you a great deal more, including what software applications are currently installed (and lists it in a printable format). DXDiag is just one of the tools that one might have to use. Port information, startup information and current memory usage and configuration, for example, are not covered. There are certainly other MS tools one could use but Belarc does this all in one and can save the info to a file (HTML or text) or print it out. The professional versions of SiSoft Sandra give more details that Belarc doesn't bother with and can also analyse PCs on a network (depending on the version), so is useful for Network Administrators. There is a great deal of information available - some of it quite esoteric and much of it of little real value, depending on the situation one needs to evaluate.
• India
13 Nov 09
i am not a pro in this first of all i will give an idea related to this if you type dxdiag in run you can get all you system information so write a code to open the process dxdiag from java that will bring out what u want its my guess i am not a pro
@owlwings (43915)
• Cambridge, England
13 Nov 09
DXDiag gives information specifically related to DirectX. It is not a general system tool and doesn't query much of the hardware in depth. It doesn't deal with port or network information, for example. There are several things, such as the MAC address for example, that you would have to look for elsewhere.
• India
17 Jul 10
there are several packages are include with the default java development kit which is used to read the system properties like cpu info , memory info, Clcok info and policies info like that ... the java class is "system" class. but befoer using the class try to understand what is really does. and really it meets your expectation. if doesnt meets your requirement . you wrote a wrapper class on the top of "system" class.. and try to access other sysem informations