javanetbeansapache-commons-lang

Using Apache SystemUtils Java


I am trying to use the Apache Java library SystemUtils to determine the operating system being used. Here is a link:

https://commons.apache.org/proper/commons-lang/download_lang.cgi

I am using netbeans to create my application. I can not figure out how to use the library. I have tried importing it but it does not seem to be installed. I have tried finding a download and adding that but I am unable to find one.

Could someone please give me some advice on how to get this library working using netbeans?

Cheers

Eef


Solution

    1. Download the commons-lang-2.5-bin.zip

    2. Extract it, and find the commons-lang-2.5.jar

    3. Add that jar to the classpath of your project by:

      right click your project > Properties > Libraries > Add Jar/Folder