ingenuitas/SimpleCV — Issue #9: findBarcode produces error on Windows 7
Author: twayneprice
Created: 2011-11-30 22:08:44+00:00
State: open

The following code produces an error when finding a barcode. The barcode.png is from the sampleimages directory.

from SimpleCV import *
from zxing import *
i = Image("./barcode.png")
b = i.findBarcode("./zxing")
print b.data

The error produced is:

>>> from SimpleCV import *
>>> from zxing import *
>>> i = Image("./barcode.png")
>>> b = i.findBarcode("./zxing")
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/zxing/clie
nt/j2se/CommandLineRunner
Caused by: java.lang.ClassNotFoundException: com.google.zxing.client.j2se.Comman
dLineRunner
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)
Could not find the main class: com.google.zxing.client.j2se.CommandLineRunner.
Program will exit.
>>> print b.data

>>>