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

not work #11

Open
uulucky opened this issue May 16, 2019 · 6 comments
Open

not work #11

uulucky opened this issue May 16, 2019 · 6 comments

Comments

@uulucky
Copy link

uulucky commented May 16, 2019

/usr/bin/java -cp /download/php-zxing/src/bin/javase-3.3.3.jar:/download/php-zxing/src/bin/core-3.3.3.jar:/download/php-zxing/src/bin/jcommander-1.72.jar com.google.zxing.client.j2se.CommandLineRunner php-zxing/src/images/no_bar_code_found.jpeg

i do this command。
then cpu100%,after 60s timeout。

@uulucky
Copy link
Author

uulucky commented May 16, 2019

i use ‘apt install default-jre’ install java on ubuntu 16.04,。
what is wrong?
ths

@uulucky
Copy link
Author

uulucky commented May 16, 2019

not found any error or waring?can y help me,thanks

@dsiddharth2
Copy link
Owner

hi @uulucky thanks for reporting, I will check this and get back to you.

@dsiddharth2
Copy link
Owner

dsiddharth2 commented May 19, 2019

@uulucky Did you try running a command in your terminal,

which java ?

If you did that then set java path as follows,

$decoder = new PHPZxingDecoder();
$decoder->setJavaPath("<PATH OF JAVA YOU GET FROM which java COMMAND ABOVE>");
$data = $decoder->decode('../images/Code128Barcode.jpg');
print_r($data);

Does this solve your problem?

@uulucky
Copy link
Author

uulucky commented May 20, 2019

no,my java path is "/usr/bin/java",This operation is useless

@uulucky
Copy link
Author

uulucky commented Sep 21, 2019

Can't I use it without a network?
Does it support GB2312 encoding?

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