Java Code 128 Barcode Generator

Generate, draw & print Code 128 in Java applications with Java barcode generation component
Java Barcode Trial Package
Java Barcode Trial Package
Code 128 Barcode Generator for Java- Benefits
To Encode, Draw 1D Barcode Code 128 with Barcode Generator for Java

Available Java Reporting Applications

Easy to create and output Code 128 barcode in Jasper Reports, iReport, Eclipse BIRT, Oracle Reports.

Check Sum Digit

Check sum digit may be automatically calculated with Terrekā€™s Code 128 generator.

Available JDK

JDK 1.4.0 and above is supported.

Rich Barcode properties

Easy to customize Code 128 barcode sizing by adjusting Code 128 module size
Simple to output high-quality Code 128 barcode images with customized color, resolution and orientation
Show or hide human-readable text and checksum digit for Code 128 barcodes

Support ISO Standard

Compatible with ISO / IEC 16388 (2nd edition 2007-05-15)
Java Code 128 Barcode Generator --- Overview
Java Code 128 Generator can easily generate Code 128 in Java Client applications, such as Java Class, Swing, Applet, Java Bean, J2SE. Easy encapsulation, integration and customization are supported with JavaBean obeying a particular convention under a developmental environment.

Code 128 Introduction

Code 128 is a very effective, high-density barcode symbology which allows the encoding of alphanumeric data. It is designed to encode all 128 ASCII characters and the Latin-1 characters defined in ISO/IEC 8859-1. This symbology has been widely implemented in many applications where a relatively large amount of data must be encoded in a relatively small amount of space.
Java Code 128 symbology encodes:
  • all 128 characters of ASCII
  • values 128-255 in accordance with ISO 8859-1. There are referred to as extended ASCII.
Java Code 128 Generator --- Generating Barcode

Generate Code 128 in Java class by customizing barcode properties.

// Create Java Code 128 object
Code 128 barcode = new Code128();
// Set Code 128 data text to encode
// Generate Code 128 & print into Graphics2D object
barcode.drawBarcode("Java Graphics2D object");
// Generate Code 128 & encode into GIF format
// Generate Code 128 & encode into JPEG format

Generate & encode Code 128 to EPS by changing the concerned values.

// Create Java barcode object
Codbar barcode = new Code128();
// Set Code 128 data text to encode
// Generate Code 128 & encode into EPS format

Generate & encode Code 128 in html or jsp pages.

Add barcode folder and its contents from demo package to Apache Tomcat.
Start Apache Tomcat, go to http://YourDomain:Port/barcode/barcode?DATA=87654321&TYPE=CODE128
Add an image tag (img) into your target page. Like following one,

Customize the width and height of generated Code 128 image

You can choose to set the values of the barcodeWidth and barcodeHeight properties or set Code 128 (bar module width) and Y (bar module height) values.
(For more Code 128 properties setting, see Code 128 properties)
Java Code 128 Generator --- Setting Code 128 Properties
Code 128 Basic Settings