Twain device (scanner) control in Java

2020-08-09 08:01发布

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.

2条回答
Emotional °昔
2楼-- · 2020-08-09 08:18

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

查看更多
我命由我不由天
3楼-- · 2020-08-09 08:21

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.

查看更多
登录 后发表回答