Over a million developers have joined DZone.

Get Your OS Distribution Details in Java

· Java Zone

Navigate the Maze of the End-User Experience and pick up this APM Essential guide, brought to you in partnership with CA Technologies

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!

Thrive in the application economy with an APM model that is strategic. Be E.P.I.C. with CA APM.  Brought to you in partnership with CA Technologies.

Topics:

Published at DZone with permission of Aurelien Broszniowski, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}