Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The readme is unclear for non Java experts #15

Open
galou opened this issue May 28, 2016 · 1 comment
Open

The readme is unclear for non Java experts #15

galou opened this issue May 28, 2016 · 1 comment

Comments

@galou
Copy link

galou commented May 28, 2016

I have close to no knowledge about java and could not have python-zxing working.

The README.md file states Initializing the barcode reader, you have to tell it where to find the ZXing core modules. It suggests /var/opt/zxing. However, there is no zxing directory in /var/opt after having followed the steps in Section "Usage".

After a few trials and error, I managed to run it by using the maven build directory:

zxing_scanner = zxing.BarCodeReader('/home/gael/04-build/zxing/zxing')
barcode = reader.decode('/tmp/image.jpg')

I wanted to install zxing globaly or as user but don't know how to do it. I noticed though that there is something related to zxing in ~/.m2/repository/com/google/zxing (there is ~/.m2/repository/com/google/zxing/core/3.2.1/core-3.2.1.jar but no core.jar) and wanted to use it. What I tried (I tried all commented lines with the same results):

# reader = zxing.BarCodeReader('/home/gael/.m2/repository/com/google/zxing/core/')
# reader = zxing.BarCodeReader('/home/gael/.m2/repository/com/google/zxing/core/3.2.1')
reader = zxing.BarCodeReader('/home/gael/.m2/repository')
barcode = reader.decode('/tmp/image.jpg')

I got:

Error: Could not find or load main class com.google.zxing.client.j2se.CommandLineRunner

I think it would be appropriate to give more details in the README.md file.

@SammyDlx
Copy link

I absolutely agree, the installation guidance is ambiguous, unclear and at some points even flawed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants