Solved

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

Posted on 2010-08-14
5
4,252 Views
Last Modified: 2013-12-14
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
0
Comment
Question by:bullery
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 92

Expert Comment

by:objects
ID: 33438911
add the codecs jar to your build path
0
 
LVL 92

Expert Comment

by:objects
ID: 33438913
you can get the jar here
http://commons.apache.org/codec/
0
 

Author Comment

by:bullery
ID: 33438918
How do I add the codecs to the build path? You're probably LYAO at the follow up question here...
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 33438946
add the jars to a folder (eg. libs) in your project
right click on the jar and select add to build path
0
 

Author Comment

by:bullery
ID: 33438947
Sweet. Thanks!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Certificat to iSeries KeyStore 1 30
Java syntax, or is it Selenium 6 59
glassfish admin console 1 47
Website checklist for browser compatibility? 2 57
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question