Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java  and programming certification ? 4 86
Groovy:unable to resolve class error 2 70
Angular JS Route 3 54
PHPStorm debugging issues 1 25
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This video teaches viewers about errors in exception handling.

861 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

22 Experts available now in Live!

Get 1:1 Help Now