Installing Java libraries

snoofkin picture snoofkin · Jan 22, 2011 · Viewed 13.1k times · Source

As I'm quite new to Java, I would like to know the proper procedure of installing new libraries (those that are no available in my linux dist repositories). Where should I place them? and how to install them? For instance, I downloaded openCsv (http://opencsv.sourceforge.net/), and I have no idea how to install it.

Answer

lukuluku picture lukuluku · Jan 22, 2011

Be sure that the path, which you place the libaries at, is set in the $CLASSPATH Environment Variable.

For Eclipse: Project -> Properties -> Java Build Path -> Add JARs...