• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Barcode Scan In Java ?

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

i have Java application in which i want to add barcode scanning option.
1. Do i need to write a separate code for different different hardware to scan barcode from java class?
2. Is there any open source project which can help me to read barcode from any or particular hardware?


Thanks
Anchit
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, I think the code will be device-specific - there is no standard Java API for interfacing with barcode scanners specifically.

The scanner will likely be attached to a computer via a serial or USB cable - read through the https://coderanch.com/how-to/java/JavaIoFaq for libraries that can interface with both these port types.
 
Ranch Hand
Posts: 334
2
Netbeans IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm curious if anyone has seen a Java class library to decode a bar code (1D and 2D) from an image?

Joe
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Several such libraries exist - check out the doubly-underlined "Aspose" link in achit's post for a commercial option. Open source libraries include http://code.google.com/p/jjil/ and http://code.google.com/p/zxing/ (probably the best-known such library, as it also works on mobile devices).
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Ranch Hand
Posts: 104
2
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:Open source libraries include http://code.google.com/p/jjil/ and http://code.google.com/p/zxing/ (probably the best-known such library, as it also works on mobile devices).


Short article on usage of zxing library to read QR code can be found at http://javapapers.com/core-java/java-qr-code/
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic