Oshi is a free JNA-based (native) operating system information library for Java. It doesn't require any additional native DLLs and aims to provide a cross-platform implementation to retrieve system information, such as version, memory, CPU, disk, etc.
Oshi is a very young project. We'd like you to contribute a *nix port. Read the project intro.
- Windows
 - Linux
 - Mac OS-X
 
- 
Manufacturer
- GNU/Linux
 - Microsoft
 - Apple
 
 - 
Family
- Mac OS X
 - Windows
 - Linux Distribution (Fedora, Ubuntu, ...)
 
 - 
Version
- Version number
 - Codename
 - Build
 
 
- How much physical RAM
 - How much available RAM
 - How many CPUs (core * thread)
 
Here's sample tests output:
For Windows:
Microsoft Windows 7
2 CPU(s):
 Intel(R) Core(TM)2 Duo CPU T7300  @ 2.00GHz
 Intel(R) Core(TM)2 Duo CPU T7300  @ 2.00GHz
Memory: 532.1 MB/2.0 GB
For Linux:
GNU/Linux Fedora 20 (Heisenbug)
8 CPU(s):
 Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
 Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
 Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
 Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
 Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
 Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
 Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
 Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
Memory: 21.0 GB/31.0 GB
For Mac OS X:
Apple Mac OS X 10.9.5 (Mavericks) build 13F34
4 CPU(s):
 Intel(R) Core(TM) i7-2677M CPU @ 1.80GHz
 Intel(R) Core(TM) i7-2677M CPU @ 1.80GHz
 Intel(R) Core(TM) i7-2677M CPU @ 1.80GHz
 Intel(R) Core(TM) i7-2677M CPU @ 1.80GHz
Memory: 17.3 MB/4 GB
- Sigar: Sigar is GPL. Oshi is distributed under the MIT license. Oshi also uses JNA and doesn't require a native DLL to be installed.
 
This project is licensed under the Eclipse Public License 1.0.