问题
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