Take the 2-minute tour ×

I want to read barcode from barcode device using Java. Please guide me.

share|improve this question
You may be helped by this answer to a very similar question: stackoverflow.com/questions/2097863/usb-barcode-reader-in-qt4/… –  Scott W Jan 22 '10 at 14:01
Can you be more specific ? What kind of barcode device ? Serial, keyboard wedge, USB ? What are you planning to do with the input ? What platform are you running on ? –  Romain Hippeau Apr 20 '10 at 15:36
add comment

2 Answers

up vote 3 down vote accepted

do you need a scanner that does keyboard inout ? a cCOMM (rS232) scanner a USB scanner that doesnt do keybaord input ??

Most barcode reading is done by simpel barcode to keyboard input. This works without any programming in Java as it is your barcodescanner that just send keybaord events to your application. just put focus in a textfield , scan and it works.

The other options is COMM communication

read all about it http://java.sun.com/products/javacomm/ and here http://www.jcontrol.org/download/rxtx_en.html

you can connect USB devices to your computer and with the proper device driver read them as if they are COMM devices This can be better then using USB itself as its far more complex then COMM communication

share|improve this answer
add comment

Well.. Any barcode reader is able to translate the barcode into characters, right? It works just like you type the characters in with your keyboard. I don't think you need a java-based one.

share|improve this answer
add comment

Your Answer


