Git Product home page Git Product logo

os-platform-finder's Introduction

os-platform-finder

Build Status Maven Central

NOTE: Repackaged version. Find the original repository at https://github.com/aurbroszniowski/os-platform-finder

Utility class to return the current OS Platform

The Problem?

You can get OS information in java by using

    System.getProperty("os.name");
    System.getProperty("os.version");
    System.getProperty("os.arch");

Unfortunately you can not get the detail of the OS platform. e.g. you can not get

Red Hat Enterprise Linux Server release 6.5 (Santiago)

or

OS X Mavericks (10.9.3)

The Solution?

The class org.jsoftbiz.utils.OS included in this project gives you the information of your OS platform

Just do

    import org.jsoftbiz.utils.OS;
    
    OS myOS = OS.getOs();

and you'll have access to the platform name, extra of the OS system properties:

    myOS.getPlatformName()

    myOS.getName()
    myOS.getVersion()
    myOS.getArch()

Wanna help?

I don't have access to all OSes, so if you want to help, look at the table below of tested platforms. If you have access to one non-tested platform, just get this project, create a jar

   mvn clean package

it will be located in the target directory

   target/os-platform-finder-1.0.jar

copy the jar on your OS and execute it

   java -jar os-platform-finder-1.0.jar

If it is ok, you can do a pull request on this README.md with the updated info.

If it is not ok, then please open an issue, including the details of your OS and the output of the jar execution...

Thanks!

OS Version Arch. Platform Status
Windows all all Windows OK
Mac OS all all Mac OS OK
OS X all all OS X OK
Linux all all RedHat OK
Linux all all Linux Mint IMPLEMENTED, NOT TESTED
Linux all all Ubuntu OK
Linux all all Debian IMPLEMENTED, NOT TESTED
Linux all all Fedora OK
Linux all all openSUS IMPLEMENTED, NOT TESTED
Linux all all Arch Linux IMPLEMENTED, NOT TESTED
Linux all all CentOS OK
Linux all all Slackware IMPLEMENTED, NOT TESTED
Linux all all FreeBSD IMPLEMENTED, NOT TESTED
Solaris all all IMPLEMENTED, NOT TESTED
AIX all all NOT IMPLEMENTED

Known issues with :

OS Version Arch. Platform Status

Author

Aurélien Broszniowski - JSoft.biz

os-platform-finder's People

Contributors

aurbroszniowski avatar sarigalin avatar

Stargazers

Valérie ROUX avatar Otis Gospodnetić avatar

Watchers

Bernd Ahlers avatar Dennis Oelkers avatar Kay Roepke avatar Marius Sturm avatar James Cloos avatar Florian Popp avatar Gary Bot avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.