This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
Is there any way to get the info of the a pc similar to the device manager. The system.getProperties() method only returns the o/s info etc. I need the hardware of a pc.
posted 11 years ago
It's not directly possible in Java because the language is not that low-level. If you want machine-specific information, you'll need to either obtain or write yourself some native code and make the necessary calls through JNI (Java Native Interface). It allows you to make platform-specific native calls so that you can retrieve the type of information you're looking for.
Google for JNI for a nice tutorial by sun
Dad always thought laughter was the best medicine, which I guess is why several of us died of tuberculosis. -Jack Handy