Originally Posted by
limesh
i want know what are the codes for generate and recognize barcodes in java netbeans using barcode scanner??and i want to how to do it. i have no idea about it.i m still student. i m doing billing system project and i want to add barcode scanner.help me please.
This is not a small project. You need to sort out what your requirements are, and what the scope is. e.g.:
- How will you be reading and storing the barcode information? What hardware? Where will the raw or cooked data be stored?
- What sort of barcodes are you going to support (there are many different sorts of barcodes and barcode encodings)
- What do you intend to do with the barcode info once scanned and/or stored?
Then you need to break the project down into problem domains:
- How will you be interfacing with the hardware? Do you have to write the hardware interface layer, or can you borrow or buy it? Can you get a demo working cheaply? (Can you just use a webcam to test, for example?)
- Are you going to have to write, borrow, or buy the various supported barcode encoding libraries/APIs?
- Who is the intended target audience? Are you writing an API intended to be leveraged by OEMs, or are you writing a complete turnkey system?
As you can see, very little of the upfront work has anything to do with Java, or even (directly) computer programming.
You would be better off scaling down and cooking up a demo: use a webcam to take photos of barcodes, and write some minimal code that reads those JPEGs of some specific sorts of barcodes you can find free Java library support for, and see if you can decode that to a human-readable string.
Unless you really know how to interface with the parallel or serial barcode reader you have in your possession, in which case substitute it for the webcam example.