You may go to a data matrix generator for Java which may help you out. It is completely written in Java and is integrated with all barcode concerned features such as barcode width setting, height...