PC-Details is a free OSHI & jHardware based library for Java to retrieve Hardware and Software informations. With PC-Details possible is to retrieve informations of software such as Operating System, Bios or System Processes, and informations of hardware such as processor details, hard disk free space, graphic cards mounted in PC and more.
Windows • Linux • Mac OS X • Unix
- Java 1.8+
- Operating System details (version, build etc.)
- BIOS details (version, manufacturer etc.)
- Processes details (cores&threads, model etc.)
- Graphic cards details (model, manufacturer etc.)
- Memory details (used memory, total memory etc.)
- Hard disks and partitions details (free space, partitions name&total space etc.)
- Network details (network interfaces, IPs etc.)
- Motherboard details (manufacturer, version etc.)
Version | Download from GitHub /mvn-repo/ catalog | Description |
---|---|---|
1.0.7 | pc-details-1.0.7-SNAPSHOT.jar | Newest stable release version |
1.0.7r | pc-details-1.0.7-SNAPSHOT-runnable.jar | Newest stable release version with runnable class |
There are three ways to retrieve component information:
1)
HardwareInfo<Cpu> cpuInfo = new CpuInfo();
Cpu cpu = cpuInfo.buildHardware();
System.out.println(cpu.componentAsString());
2)
Cpu cpu = (Cpu) DeviceFactory.getHardware(DeviceFactory.HardwareType.CPU).buildHardware();
System.out.println(cpu.componentAsString());
3)
Cpu cpu = PCDetailsFactory.getProcessorInfo();
System.out.println(cpu.componentAsString());
- Sample code with main you can find here PCDetailsExample.java.
- Runnable version of code you can find here PCDetailsConsoleParameters.java.
- Mateusz Mucha aka Vallendir
- Email: [email protected]
PC-Details project library is licensed under the Apache License Version 2.0. See the License file for more informations.