Home › Forums › TWAIN Classic › How to get TWAIN Drivers for Java Wrapper
- This topic has 1 reply, 2 voices, and was last updated 8 years, 6 months ago by spike.
- AuthorPosts
Hello,
I am trying to find how get the native TWAIN libraries to use in a Java Application(JNA). Where or how can I obtain these? Do I need to register as an “Scanner Application Developer” at http://twain.org/register/ in order to obtain them?
Can I get more information about being a member? For example, what are terms for use, freely distributed with my application etc.
Thanks,
JasonHi Jason – there is lots of information (admittedly you sometimes have to dig) about membership in the TWAIN Working Group, on the http://twain.org website – look for ‘Membership’ links.
However, you don’t need any license or permission to write an application that uses the TWAIN API.
The library you need to talk to is the TWAIN Data Source Manager (DSM), which is a dynamically-loaded library, available from SourceForge:
http://sourceforge.net/projects/twain-dsm/The TWAIN specification describes the entry points of that library (DLL, on Windows) but – using C as the reference language.
So to call the DSM, you need to understand both the DSM entry points and JNA quite well.
I recommend searching for example JNA code that talks to TWAIN, because it will save you a lot of work.This article, for example, looks quite thorough:
https://today.java.net/article/2009/11/11/simplify-native-code-access-jna-spike 8)
- AuthorPosts