Page 1 of 1

Problem with Bookscan - Newcomer

Posted: 03 Aug 2014, 11:29
by ano
Can someone tell me what am I doing wrong?

Trying to run Bookscanwizard, system as follows:
Bookscan 2.02b,
Windows 7,
Java version "1.7.0_01" ( Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode) ).


***bookscanwizard fails to start:

***Running bsw.cmd I get the following (echo changed to on on, only last lines of output):

C:\Program Files\BookScanWizard>java -Xmx8192M -jar bsw\..\BookScanWizard.jar
Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/TileCache
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.media.jai.TileCache
at java.net.URLClassLoader$1.run(Unknown Source)
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)
... 6 more
C:\Program Files\BookScanWizard>


***Trying to get a little more information, I run java with "-verbose": huge output, and the error at the end is like:

......
[Loaded java.awt.image.RenderedImage from C:\Program Files\Java\jre7\lib\rt.jar]
[Loaded java.awt.Dialog from C:\Program Files\Java\jre7\lib\rt.jar]
[Loaded javax.swing.JDialog from C:\Program Files\Java\jre7\lib\rt.jar]
[Loaded net.sourceforge.bookscanwizard.gui.MetadataGui from file:/C:/Program%20Files/BookScanWizard/BookScanWizard.jar]
[Loaded java.lang.NoSuchMethodException from C:\Program Files\Java\jre7\lib\rt.jar]
Exception in thread "main" [Loaded java.lang.Throwable$PrintStreamOrWriter from C:\Program Files\Java\jre7\lib\rt.jar]
[Loaded java.lang.Throwable$WrappedPrintStream from C:\Program Files\Java\jre7\lib\rt.jar]
[Loaded java.util.IdentityHashMap from C:\Program Files\Java\jre7\lib\rt.jar]
[Loaded java.util.IdentityHashMap$KeySet from C:\Program Files\Java\jre7\lib\rt.jar]
java.lang.NoClassDefFoundError: javax/media/jai/TileCache
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
[Loaded java.util.Objects from C:\Program Files\Java\jre7\lib\rt.jar]
Caused by: java.lang.ClassNotFoundException: javax.media.jai.TileCache
at java.net.URLClassLoader$1.run(Unknown Source)
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)
... 6 more
[Loaded java.lang.Shutdown from C:\Program Files\Java\jre7\lib\rt.jar]
[Loaded java.lang.Shutdown$Lock from C:\Program Files\Java\jre7\lib\rt.jar]
C:\Program Files\BookScanWizard>

Any suggestion?
Thanks
A.No.

Re: Problem with Bookscan - Newcomer

Posted: 03 Sep 2014, 01:25
by kylefoley76
I'm also having a problem. I use Mac OS 10.6. Java won't lauch. Does Bookscanner work for Mac?

Re: Problem with Bookscan - Newcomer

Posted: 09 Sep 2014, 22:25
by steve1066d
Hmm... for some reason I didn't get notified about this thread...

There does seem to be an issue with the latest version. I'll fix it in the next couple of days.

In the meantime, you can use the webstart version:

http://bookscanwizard.sourceforge.net/run/

Re: Problem with Bookscan - Newcomer

Posted: 12 Sep 2014, 23:56
by steve1066d
I updated BSW so it now includes jai and jai-imageio, instead of requiring the user to download them separately when installing manually. (The webstart version is not changing for now).

https://sourceforge.net/projects/booksc ... t/download

This should take care of the NoClassDefFoundError issues.