• 0

[JAVA] Bar codes


Question

Bit of a strange one this! Any help what so ever would be appreciated.

I need to do some research into how to interface with a bar code reader using java, how hard is this? Are some barcode readers easier to use than others?? Is java the best language to do this in? (Im best at java but can do C and C++)

I guess I need to be able to print out bar codes as well - how are they created? - Is this easy to do in java?

Basically I need to have a think about it and see if its doable- any one with any experience of doing anything like this?

Cheers Guys,

Greg

Link to comment
https://www.neowin.net/forum/topic/635558-java-bar-codes/
Share on other sites

5 answers to this question

Recommended Posts

  • 0
  Ste said:
iirc barcodes just emulate a keyboard, asin its the same as typing in the number it represents

ste

yea thats been my experience with most too. Only time you get different is if you have some wireless ones that store everything you scan until you get back to its docking station, then dump the data off

Link to comment
https://www.neowin.net/forum/topic/635558-java-bar-codes/#findComment-589381869
Share on other sites

  • 0

Right ok - I thinking about overhauling a stock system we have and doing everything with barcodes. This is gonna have a web front end and a backend database. I need to read bar codes, to select the current product and print new barcodes.

My concern was that I'm gonna need some kind of application running to do some low level stuff with barcode reader to make it work with web interface. But what your saying is, it works like a keyboard (so there is no need for any application of this type). - Is this correct?

Any idea on how I go about producing a program to print out barcodes?

Link to comment
https://www.neowin.net/forum/topic/635558-java-bar-codes/#findComment-589381886
Share on other sites

  • 0
  WarStorm said:
Right ok - I thinking about overhauling a stock system we have and doing everything with barcodes. This is gonna have a web front end and a backend database. I need to read bar codes, to select the current product and print new barcodes.

My concern was that I'm gonna need some kind of application running to do some low level stuff with barcode reader to make it work with web interface. But what your saying is, it works like a keyboard (so there is no need for any application of this type). - Is this correct?

Any idea on how I go about producing a program to print out barcodes?

There are readers that plug into the PS/2 port and have another port going off them for the regular keyboard and they put the number right in as if it had been typed.

As for generating barcodes, look at barcode4j (http://barcode4j.sourceforge.net/) or barbecue (http://sourceforge.net/projects/barbecue/)

Link to comment
https://www.neowin.net/forum/topic/635558-java-bar-codes/#findComment-589382969
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • 99% of Control Panel will be moved to Settings. Then by 2050, 20% of settings will have been moved to the Configuration Menu. I have no issues with Settings as it exists now in Windows 11. Bring everything over and be done with it.
    • We collect the few carcasses we get (as long as drivers report them, as they should) and while we have our fair share, we don't have nearly enough crashes with deer "to paint the roads with deer carcasses" in Finland. Also, if you can't handle the risks, DO NOT DRIVE. I really don't want everything to be so simple and stupid, that I don't have to worry about my surroundings (I also hate Apple devices because they kind of decide everything for you and offer very little customization vs. Android). Most people probably encounter much higher risks and dangers in their daily jobs than they encounter on roads. Just a few weeks ago I twisted my anckle at work while walking and I haven't had even a near miss with an animal in traffic for many years despite driving something like 27000+ km/year (there were a couple of off years in there too) and seeing many deer, a few moose and many smaller creatures on the road. I find it extremely rare to have deer stumble directly in front of me - it happens, but in my opinion not nearly enough to warrant considering it super dangerous (I actually find it exhilarating when it does happen as it changes the daily commute and it actually requires me to stay focused). It is probably more common to have some idiot with their face glued to their phone wonder in front of you or a kid on an electric scooter disregard all traffic rules. Here in the Nordics we also have plenty of snow and that kind of f's up anything that relies on lines or other clear lane indicators. The one time I have (kind of) started raging while driving was when I had a loan car from service and it had lane guidance. That freaking thing basically felt like it wanted to hit every pothole and bump it could and I really, really freaking hated it (came close to ripping the whole steering wheel of, I tell you . Didn't feel safer at all, quite the contrary, and it distracted me from the road more than anything else I've driven before, constantly fighting that f'ing thing to go where I wanted it to go (no clear lines, a crack in the pavement, etc. and it became confused as hell and required more adjusting than any traditional car). Also noteworthy that globally the amount of people with driver's licenses is pretty low (like under 20 %), many countries have great public transport systems and many walk and cycle (even during the winter).
    • The snipping tool has come a long way. Every feature they add reduces the need for third-party utilities; in the past it seemed MS shied away from adding features to some in-box tools just so there would be a more robust third-party developer base. Now that we finally have boxes, circles and arrows, can they finally add text bubbles?
    • It's a custom built linear internal power supply which is isolated from the mainboard, it is very clean. External switching PSUs can be noisy and send that noise to the components. Linear external power supplies are expensive for good ones and are rare to see included with a device hence why they are sold optionally.
  • Recent Achievements

    • Week One Done
      BlakeBringer earned a badge
      Week One Done
    • Week One Done
      Helen Shafer earned a badge
      Week One Done
    • First Post
      emptyother earned a badge
      First Post
    • Week One Done
      Crunchy6 earned a badge
      Week One Done
    • One Month Later
      KynanSEIT earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      660
    2. 2
      ATLien_0
      266
    3. 3
      Michael Scrip
      235
    4. 4
      Steven P.
      164
    5. 5
      +FloatingFatMan
      153
  • Tell a friend

    Love Neowin? Tell a friend!