title: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64 when trying to create CommonsHttpOAuthConsumer
body: <p>EDIT:   </p>
  
  <pre><code>public static void main(String[] args)throws Exception {
      // TODO Auto-generated method stub
      System.out.println("debug1");
      CommonsHttpOAuthConsumer consumer = new CommonsHttpOAuthConsumer("key","secret");
           System.out.println("debug2");
  ...}
  </code></pre>
  
  <p>hi when i try to run this script i get this response:</p>
  
  <p>debug1</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
  
  at oauth.signpost.signature.OAuthMessageSigner.&lt;init&gt;(OAuthMessageSigner.java:37)
  
  at oauth.signpost.signature.HmacSha1MessageSigner.&lt;init&gt;(HmacSha1MessageSigner.java:30)
  
  at oauth.signpost.AbstractOAuthConsumer.&lt;init&gt;(AbstractOAuthConsumer.java:65)
  
  at oauth.signpost.commonshttp.CommonsHttpOAuthConsumer.&lt;init&gt;(CommonsHttpOAuthConsumer.java:30)
  
  at mein.tester.main(tester.java:21)
  
  Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
  
  at java.net.URLClassLoader$1.run(Unknown Source)
  
  at java.security.AccessController.doPrivileged(Native Method)
  
  at java.net.URLClassLoader.findClass(Unknown Source)
  
  at java.lang.ClassLoader.loadClass(Unknown Source)
  
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  
  at java.lang.ClassLoader.loadClass(Unknown Source)
  
  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  
  ... 5 more
  </code></pre>
  
  <p>Line 21 is the line before </p>
  
  <pre><code>         System.out.println("debug2");
  </code></pre>
  
  <p>Well i can easily compile the code in eclipse and i added 2 Signpost librabrys and also common-codec.jar as external library as i read in another post.. however, how do i make it available on runtime?(i did like in the post "add it to WEB-INF/lib " -> i created that folder and added the jar
  -i also tryed the defaultoauthconsumer -> same error</p>