title: Installing and using OnBarcode Library
body: <p>I have resently bought the OnBarcode Library for android, when I got the email saying what I needed to download I got a .jar file, I added that file into a lib folder that I made within my app. Then I went to the properties of my project where I went to "Java Build Path" I added that jar file to my app like that. Next, I added some code into on View Class and in the onDraw section I added <code>testQRCode(canvas)</code> the code for that is</p>
  
  <pre><code>private static void testQRCode(Canvas canvas) throws Exception
      {
          QRCode barcode = new QRCode();
  
          barcode.setData("test;");
          barcode.setDataMode(QRCode.M_AUTO);
          barcode.setVersion(1);
          barcode.setEcl(QRCode.ECL_L);
  
          barcode.setFnc1Mode(IBarcode.FNC1_NONE);
  
          barcode.setProcessTilde(false);
  
          barcode.setUom(IBarcode.UOM_PIXEL);
          barcode.setX(3f);
  
          barcode.setLeftMargin(50f);
          barcode.setRightMargin(50f);
          barcode.setTopMargin(50f);
          barcode.setBottomMargin(50f);
          barcode.setResolution(72);
  
          barcode.setForeColor(AndroidColor.black);
          barcode.setBackColor(AndroidColor.white);
  
          RectF bounds = new RectF(0, 0, 100, 100);
          barcode.drawBarcode(canvas, bounds);
      }
  </code></pre>
  
  <p>The finaly when I try to run my app I get an error that says <code>java.lang.NoClassDefFoundError: com.onbarcode.barcode.android.QRCode</code> what have I done wrong im kinda stressing our over this because this cost bout $800 to buy and that its crashing in scaring me. Do you guys have any ideas on what Im doing wrong? Thanks.</p>