Solved

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

Posted on 2010-08-14
5
4,049 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

746 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now