This
Java Barcode Reader is a Java library which scans and recognises barcodes (including most linear and 2D barcodes) from image files. You can embed barcode recognition features in your Java Server Side Environment (JSP, Servlet, J2EE, Web Service) and Java Application (Swing, Applet, Java Bean, J2SE).