Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2010-08-14
5
Medium Priority
?
4,590 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month21 days, 3 hours left to enroll

810 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