Java中的Twain设备(扫描器)控件 [英] Twain device (scanner) control in Java
问题描述
我想通过Java扫描许多论文.我发现了 mm的计算吐温库.
I want to scan a number of papers through Java. I found the mm's computing twain library.
当我运行示例 TwainExample.java ,我收到此错误.
When I run the example TwainExample.java at the site, I receive this error.
uk.co.mmscomputing.device.twain.TwainIOException:无法加载Twain源管理器.
uk.co.mmscomputing.device.twain.TwainIOException: Cannot load Twain Source Manager.
另一方面,ImageJ与插件几乎相同的代码.但是,当我单独使用此代码时,我仍然会收到相同的异常.
On the other hand, almost the same code works with ImageJ as a plugin. Yet, when I used this code by itself I still receive the same exception.
我想知道为什么这不起作用.
I wonder why this is not working.
推荐答案
您可以尝试下载64位的TWAINDSM.DLL并将其放在C:/windows/system32或32中(如果有). 在SourceForge上找到它
You can try download TWAINDSM.DLL for 64bit and put it in C:/windows/system32, or 32 if you have it. Find it on SourceForge
致谢
这篇关于Java中的Twain设备(扫描器)控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!