Java Data Matrix 2D Barcode Generator | GS1 | ECC200

  • Each package contains all Java components in a single JAR file necessary to generate Data Matrix, GS1 Data Matrix & ECC200 barcode images:
  • 2D GS1 Data Matrix barcode image in a Java environment.
    • JavaBean support for easy Data Matrix barcode development, integration, and customization.
    • Servlets for server-side Data Matrix barcode image generation.
    • Class libraries for integrating Data Matrix into Java applications.
    • Built-in image generation libraries for AWT, GIF, JPEG, SVG, and EPS.
  • This Data Matrix supports Auto Encoding Mode, ECC200, ASCII, text, UTF-8, C40, and Base256 encoding. 
  • Includes support for UTF-8 encoding and US DOD UID and macro codeword 236 and 237 ISO/IEC 15434 formats. Automatic or manual version selection.
  • Supported on any operating system with a Java Virtual Machine and integrates with many environments including Oracle, Cognos, and more.
  • Source code provided for all applets, graphic encoders, and servlets. 

Licenses from $990. To order choose the Order Now button below and choose Data Matrix from the license type selection.

Order Now User Manual Integration Download Demo

Java Data Matrix Barcode Generator Overview

"We found the Java Barcode Package to be an easy integration into Oracle Reports and Oracle Forms, making a much easier implementation for barcodes."
- John, IDAutomation Cusomer

Generate GS1 Data Matrix barcode images in any environment that supports Java Virtual Machine with the Java Barcode Generator Package. Includes JavaBeans, Applets, Class Libraries, and Servlets for fully functional support across all Java-based environments.

Data Matrix Image Generation Example

The following is an example of the Java source code used to create a Data Matrix image with this package:

import com.idautomation.datamatrix.*;
import com.idautomation.datamatrix.encoder.*;
class CreateImageExample {
    public static void main(String[] args) {
        DataMatrix bc=new DataMatrix(); qr.setDataToEncode("Java Barcode Generator Provided by IDAutomation.com") qr.setXDimensionCM(3); barCodeEncoder qrcode = new barCodeEncoder(qr, "GIF", "data-matrix-2d-image-example.gif");
        System.exit(0);
    }
}


Example Encoding Byte Array into Data Matrix

The following example encodes a byte array into a Data Matrix 2D symbol.

import java.io.*;
import com.idautomation.datamatrix.*;
import com.idautomation.datamatrix.encoder.*;
class DMByteExample
{
    public static void main ( String [] args )
    {
		//Generate the byte array
		byte[] myByteArray = new byte[256];
		for (int i = 0; i < 256; i++) 
		{
			myByteArray[i] = (byte) i;
		}
		//Create the DataMatrix object and set parameters
		DataMatrix bc = new DataMatrix();
		bc.encoding = DataMatrix.E_BASE256;
		bc.processTilde=false;
		bc.code="";
		//Convert the byte array and pass to "code"
		String binaryString;
		for (int i=0; i < myByteArray.length; i++) 
		{
			binaryString = Integer.toBinaryString((int)myByteArray[i]);
			if (binaryString.length() > 8)
				binaryString = binaryString.substring(binaryString.length()-8,binaryString.length());
			bc.code = bc.code + (char) Integer.parseInt(binaryString,2);
		}
		// create the file as the name of the message
		barCodeEncoder bce = new barCodeEncoder(bc, "GIF", "DMByteExample.gif");
		System.exit(0);
    }
} 

Additional examples are provided in the package download.