Issue 1706 in zxing: JAVA2SE client not working

108 views
Skip to first unread message

zx...@googlecode.com

unread,
Jun 9, 2013, 8:48:59 PM6/9/13
to zx...@googlegroups.com
Status: New
Owner: ----

New issue 1706 by robe...@spadim.com.br: JAVA2SE client not working
http://code.google.com/p/zxing/issues/detail?id=1706

hi, i downloaded 2.2 version at
http://repo1.maven.org/maven2/com/google/zxing/javase/2.2/javase-2.2.jar

and i'm trying to run, but it don't works (i'm on windows)

C:\GIT>"c:\Program Files\Java\jre6\bin\java.exe" -cp javase-2.2.jar
com.google.zxing.client.j2se.CommandLineRunner danf
e-nfce.png --dump_results
Exception in thread "main" java.lang.NoClassDefFoundError:
com/google/zxing/BarcodeFormat
at
com.google.zxing.client.j2se.CommandLineRunner.buildHints(CommandLineRunner.java:166)
at
com.google.zxing.client.j2se.CommandLineRunner.main(CommandLineRunner.java:92)
Caused by: java.lang.ClassNotFoundException: com.google.zxing.BarcodeFormat
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more


any idea what i'm doing wrong?

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

zx...@googlecode.com

unread,
Jun 10, 2013, 4:19:17 AM6/10/13
to zx...@googlegroups.com
Updates:
Status: Invalid

Comment #1 on issue 1706 by srowen: JAVA2SE client not working
http://code.google.com/p/zxing/issues/detail?id=1706

You need both core and javase jar files in your classpath. This was
documented at https://code.google.com/p/zxing/wiki/GettingStarted

zx...@googlecode.com

unread,
Jun 10, 2013, 2:22:59 PM6/10/13
to zx...@googlegroups.com

Comment #2 on issue 1706 by robe...@spadim.com.br: JAVA2SE client not
working
http://code.google.com/p/zxing/issues/detail?id=1706

maybe rewrite the wiki to show how to get it running is a better solution,
i didn't find it easly but i will try again

zx...@googlecode.com

unread,
Jun 10, 2013, 2:26:22 PM6/10/13
to zx...@googlegroups.com

Comment #3 on issue 1706 by robe...@spadim.com.br: JAVA2SE client not
working
http://code.google.com/p/zxing/issues/detail?id=1706

something like:
wget core-xxxx.jar
wget javase-xxxx.jar
java_command

just to show to newbies (like me) that exists two files

zx...@googlecode.com

unread,
Feb 6, 2015, 5:29:36 AM2/6/15
to zx...@googlegroups.com

Comment #4 on issue 1706 by liamjjmc...@gmail.com: JAVA2SE client not
working
https://code.google.com/p/zxing/issues/detail?id=1706

I am impressed with how labyrinthine and non intuitive the process has been
made.

zx...@googlecode.com

unread,
Feb 7, 2015, 9:13:36 AM2/7/15
to zx...@googlegroups.com

Comment #5 on issue 1706 by srowen: JAVA2SE client not working
https://code.google.com/p/zxing/issues/detail?id=1706

Liam, the newest link is
https://github.com/zxing/zxing/wiki/Getting-Started-Developing This is
also the old site for the project. But, if you find running a Java app that
requires two dependencies too hard, you probably shouldn't be a Java
developer.
Reply all
Reply to author
Forward
0 new messages