how to make barcode reader software in java