Link to home
Start Free TrialLog in
Avatar of bullery
bullery

asked on

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
Avatar of Mick Barry
Mick Barry
Flag of Australia image

add the codecs jar to your build path
Avatar of bullery
bullery

ASKER

How do I add the codecs to the build path? You're probably LYAO at the follow up question here...
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bullery

ASKER

Sweet. Thanks!