Twain device (scanner) control in Java

巧了我就是萌 提交于 2019-12-10 00:40:06

问题


I want to scan a number of papers through Java. I found the mm's computing twain library.

When I run the example TwainExample.java at the site, I receive this error.

uk.co.mmscomputing.device.twain.TwainIOException: Cannot load Twain Source Manager.

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.


回答1:


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

Regards




回答2:


In the past I've used Morena library successfully. It is commercial, however there is a Personal non-commercial license if that does the job for you. Even worked from a signed applet.



来源:https://stackoverflow.com/questions/14089236/twain-device-scanner-control-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!