Get motherboard information

2.5k views Asked by At

I'm starting to write an application in Java that gets all the hard drive info, memory info, processor info, and prints it out. I was wondering if it was possible to also get all motherboard information. Like if there are any video cards, network cards, or sound cards connected and get their identifying information (brand, model etc.).

Basically, I want this program to tell you every component of your computer and give you the option to print it out.

How to get motherboard information?

2

There are 2 answers

0
polemon On

To be honest, since that is a low-level functionality, I doubt that Java is suited for things like that.

Anyhow, you could run other programs on Linux to check for that, things like dmidecode, etc. or reading the /proc pseudo filesystem.

I don't know if it is really helping, but here's a web page, that describes that kind of functionality under Windows.

0
mantrid On

if your application is targeted for Windows, you could try using Java Native Access. Here is a tutorial. it is a kind of a bridge to system native libraries that omits JNI dirty stuff. if you can indetify Windows libraries and their callbacks for information you need, I think you should be able to call them via JNA. similar should be also possible on Linux.