Search code examples
javanetbeansideintellij-ideaapache-commons

How to install third-party APIs?


Sorry if this has been asked before, I searched but couldn't find anything.

I'm a novice (like, just now moving on to true object-oriented programming) Java programmer taking AP Computer Science online. Outside of class, I've been working on some programs for personal use. One program that I'd like to write needs some third-party APIs, notably Apache Commons. I'd also like to have Google's Guava API available, among others. The only problem is, I have no idea how to make the APIs available to my IDE. I'm still trying to decide on an IDE, so I'd like to make the APIs available system-wide if possible, but at minimum I need compatibility with IntelliJ IDEA 9 CE. I'm on Mac OSX, but I sometimes have to work on a Windows PC.


Solution

  • You need to download the necessary JARs and then in NetBeans, I believe there is a "Libraries" or "Classpath" menu option somewhere toward the end. Thats where you'll need to add the libraries you plan on using by referencing any JARs you've downloaded.

    You can see it here from their website