I want to read barcode from barcode device using Java. Please guide me.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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