How to create the Data Matrix barcode in a Java class.

The following code illustrates how to create a Data Matrix barcode in a Java class

6            DataMatrix dataMatrix = new DataMatrix(); 
7            dataMatrix.code = "123456789"; 
8            dataMatrix.createBarcodeImage("c:/data_matrix.gif");