Java Barcode Image Generator (Barcode/Java for short; formerly Barcode/JSP) is a lightweight Java component that can be used to draw barcodes or generate barcode images in PNG and JPEG formats, for both server and standalone applications. At its core, it provides the Java class com.bokai.barcodes.Barcode.
Barcode/Java supports over 50 different barcode symbologies and variants.
<img src="http://localhost/servlet/BarcodeServlet?barcodeType=EAN13&data=123456789012">
Barcode/Java comes with a servlet, BarcodeServlet.class; you can use it to dynamically generate PNG or JPEG barcode images. The various properties on the underlying Java class com.bokai.barcodes.Barcode have corresponding URL parameters that are directly supported by the servlet.
Note that Barcode/Java does not use the Java AWT by default; it does its drawing natively, so that your web server does NOT need run under X-Window on UNIX or Linux, which is a big differentiator compared with competing products.