Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Get Your OS Distribution Details in Java

DZone's Guide to

Get Your OS Distribution Details in Java

· Java Zone ·
Free Resource

Verify, standardize, and correct the Big 4 + more– name, email, phone and global addresses – try our Data Quality APIs now at Melissa Developer Portal!

I wrote a little utility class to get the OS details in Java.

As you may know, you can get the name, version and architecture 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 there:

https://github.com/aurbroszniowski/os-platform-finder

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!

Developers! Quickly and easily gain access to the tools and information you need! Explore, test and combine our data quality APIs at Melissa Developer Portal – home to tools that save time and boost revenue. 

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}