I wrote a little utility class to get the OS details in Java.
As you may know, you can get the name, version and architecure of your OS in java by using System properties.
But this information is limited.
For instance, on Mac Os, you will get the version but can not know what is the name of your platform (Lion, Mavericks?)
It’s even worse for Linux, you don’t have any indication of the distribution (Fedora, RedHat, Ubuntu, etc.)
So if you need to get more details about your OS, feel free to use that utility class, you’ll find it here:
And if you have access to different OS platforms, you can help me by testing the utility class on your OS.
see all details in the Readme file of the project on github, section ‘Wanna help?’