If you are looking for an open source library for generating barcodes from your Java application, then this article is for you.

What is Barbecue :
"Barbecue Project" site's says
"Barbecue is a Java library that enables the creation of barcodes in a variety of standard formats that can be displayed as Swing/AWT components, included in printed output, generated as EPS and SVG and displayed in a web application."

Before going any further, please note that Barbecue will not play on GAEJ, some dependencies are not on the "The JRE Class White List" of Google, for instance JComponent.

Project's Site :

Hello World
import java.io.File;

import net.sourceforge.barbecue.Barcode;
import net.sourceforge.barbecue.BarcodeException;
import net.sourceforge.barbecue.BarcodeFactory;
import net.sourceforge.barbecue.BarcodeImageHandler;
import net.sourceforge.barbecue.output.OutputException;

* @author Kaesar ALNIJRES

public class BarCode {

//1 get a File reference to save the bar code image
File file=new File("/home/kas/barcode");

try {
//2 create the bar code using a String (your data)
Barcode barCode=BarcodeFactory.createCode128("Hello World !!!");

//3 save the generated bar code to the above file as jpeg image
} catch (OutputException e) {
// TODO Auto-generated catch block
} catch (BarcodeException e) { Posted by okjavafx at 9:34 AM Labels: java - barcode

Dinesh,  May 2, 2011 at 7:01 PM

Thank you friend ... You and your team done a great job...

The project was useful for my my friends college "Library Management" project for free as like you.

so keep this good job tick up. At last "Thanks for the project" :)

okjavafx,  May 3, 2011 at 10:12 AM

Thank you very much for the comment. You are really very kind.

I'm really pleased that the article was helpful.
[null, null, null, null, {"document_url": "http://www.jcafe.info/2010/09/barcode-generating-in-java-barbecue.html", "unformatted_src": "http://3.bp.blogspot.com/_PwzE1TBPm1E/TJheNRUbc7I/AAAAAAAAA18/GNqoH4rvIyE/s640/0.jpg", "src": "http://3.bp.blogspot.com/_PwzE1TBPm1E/TJheNRUbc7I/AAAAAAAAA18/GNqoH4rvIyE/s640/0.jpg", "rendered_width": 640, "rendered_height": 372}, {"document_url": "http://www.jcafe.info/2010/09/barcode-generating-in-java-barbecue.html", "unformatted_src": "http://2.bp.blogspot.com/_PwzE1TBPm1E/TJhelpBVjOI/AAAAAAAAA2E/Zrw__Kiipzw/s320/1.jpg", "src": "http://2.bp.blogspot.com/_PwzE1TBPm1E/TJhelpBVjOI/AAAAAAAAA2E/Zrw__Kiipzw/s320/1.jpg"}, null, null, null, {"document_url": "http://www.jcafe.info/2010/09/barcode-generating-in-java-barbecue.html", "unformatted_src": "http://2.bp.blogspot.com/-oqXnxkYf9sQ/TcQweCrdBNI/AAAAAAAABA8/NNOhFLsel-U/s320/Steps2Eclipse+plug-in.jpg", "src": "http://2.bp.blogspot.com/-oqXnxkYf9sQ/TcQweCrdBNI/AAAAAAAABA8/NNOhFLsel-U/s320/Steps2Eclipse+plug-in.jpg", "formatted_filename": "Steps Eclipse plug in"}, null, null, null, null, null]