How do I install / reference java packages like org.apache.commons.codec.binary.Base64?

I'm a new Java Developer. I'm using Eclipse 3.5 Galileo (Mac, Java 1.6) to build a sample project and am trying to use the Base64 class that lives in org.apache.commons.codec.binary.Base64 package. Shouldn't this codec library already available for me to use? If not, how can I install it locally? Where do I drop the source files in my folder structure?

Sorry for the newbie questions here.

When I build my project I get the following error:



HTTP ERROR 500

Problem accessing /index.jsp. Reason:

    org/apache/commons/codec/binary/Base64

Caused by:

java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
bulleryAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
add the jars to a folder (eg. libs) in your project
right click on the jar and select add to build path
0
 
objectsCommented:
add the codecs jar to your build path
0
 
objectsCommented:
you can get the jar here
http://commons.apache.org/codec/
0
 
bulleryAuthor Commented:
How do I add the codecs to the build path? You're probably LYAO at the follow up question here...
0
 
bulleryAuthor Commented:
Sweet. Thanks!
0
All Courses

From novice to tech pro — start learning today.